#Flutter

Published: 01 January 1970
on channel: BBUniversal Team
788
15

#raisedbuttonisdeprecated,
#raisedbuttonflutterdeprecated,
#raisedbuttonisdeprecated,
#raisedbutton'isdeprecatedandshouldn'tbeused.useelevatedbuttoninstead,
#elevatedbuttoninflutter,

Let's grow together.
If you have any suggestions. please comment below.
Hello, Friends

Let’s Learn

Change Deprecated RaisedButton to ElevatedButton

1. RaisedButton Replaced with Elevated Button

2. Change RaisedButton to ElevatedButton

3. After changing RaisedButton To ElevatedButton Styling shows error.

4. Remove RaisedButton Styling.

5. To add Styling in Elevated Button have two ways.

1. Using ButtonStyle() Class
backgroundColor: MaterialStateProperty.all(Colors.blue)
foregroundColor: MaterialStateProperty.all(Colors.blue)

2. Using StyleForm Method
primary: Colors.red (Set Background Color)
onPrimary: Colors.white (Set Foreground Color)

Thank you.


On this page of the site you can watch the video online #Flutter with a duration of hours minute second in good quality, which was uploaded by the user BBUniversal Team 01 January 1970, share the link with friends and acquaintances, this video has already been watched 788 times on youtube and it was liked by 15 viewers. Enjoy your viewing!