Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make Wave Widget Take full Height of Screen , i tried all ways, its Starting from around bottom Center of Screen ? i am using to this in a timer it will animate to top to bottom with timer running out ! #32

Open
kafil27 opened this issue May 19, 2021 · 2 comments

Comments

@kafil27
Copy link

kafil27 commented May 19, 2021

here is the Code -

_buildCard({
required Config config,
Color backgroundColor = Colors.transparent,
DecorationImage? backgroundImage,
double height = double.infinity,
}) {
return Expanded(
child: WaveWidget(
heightPercentange: double.infinity,
config: config,
backgroundColor: backgroundColor,
backgroundImage: backgroundImage,
size: Size(
double.infinity,
controller.value * MediaQuery.of(context).size.height,
),
waveAmplitude: 0,
),
);
}

//////// here is the Scaffold //////////////////

Widget build(BuildContext context) {
ThemeData themeData = Theme.of(context);
return Scaffold(
backgroundColor: Colors.black26,
floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat,
body: AnimatedBuilder(
animation: controller,
builder: (context, child) {
return Stack(
fit: StackFit.expand,
children: [
Align(
alignment: Alignment.bottomCenter,
child: _buildCard(
height: double.maxFinite,
backgroundColor: Colors.transparent,
config: CustomConfig(
gradients: [
[Colors.red, Color(0xEEF44336)],
[Colors.pinkAccent, Color(0x77E57373)],
[Colors.deepPurple, Color(0x66FF9800)],
[Colors.deepPurpleAccent, Color(0x55FFEB3B)]
],
durations: [35000, 19440, 10800, 6000],
heightPercentages: [0.20, 0.23, 0.25, 0.30],
gradientBegin: Alignment.bottomLeft,
gradientEnd: Alignment.topRight,
),
),
// Container(
// color: Colors.deepPurpleAccent,
// height:
// controller.value * MediaQuery.of(context).size.height,
// ),
),

@imwolfmoon
Copy link

same problem

@imwolfmoon
Copy link

@kafil27 Did you solve this issues ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants