You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try wrapping your button in a Center, which will render the button at its intrinsic size. E.g.,
PageViewModel(
title:"This is a title", //"Welcome to KarmaKard",
body:"This is a body", //"Where good deeds are rewarded with good deals.",
image:_buildImage('community.png', 600),
decoration: pageDecoration,
footer:Center(
child:ElevatedButton(
onPressed: () {
introKey.currentState?.animateScroll(0);
},
style:ElevatedButton.styleFrom(
backgroundColor:Theme.of(context).colorScheme.primary,
shape:RoundedRectangleBorder(
borderRadius:BorderRadius.circular(8.0),
),
),
child:Text(
'Continue',
style:TextStyle(color:Theme.of(context).colorScheme.onPrimary),
),
),
),
)
Describe the bug
A clear and concise description of what the bug is.
The footer expands to the horizontal ends of the screen. There isn't a way to constrain the width.
To Reproduce
Steps to reproduce the behavior:
IntroductionScreen
widget.PageViewModel
to thepages
argument ofIntroductionScreen
:Expected behavior
The button should be constrained to the max width.
Screenshots
Additional context
This is on Chrome, for flutter web.
The text was updated successfully, but these errors were encountered: