Cb Events, Buttons in Flutter

By pjain      Published June 26, 2020, 4:53 a.m. in blog Programming   

Part of Series - Flutter/Dart Series

Events in Flutter

Buttons

FlatButton

FlatButton( child: --child-widgetspec-- color: Colors.blueAccent, onPressed:() { this.setState((){successMsg = "Submit Pressed";}); }, ),

  • --child-widgetspec-- can be anything but usually is text Text("Submit",style: TextStyle(fontSize:25.0, fontWeight:FontWeight.bold, color: Color.white),),

Icon Buttons

IconButton(
          icon: Icon(choices[0].icon),
          color: Colors.white,
          onPressed: () {
            // _select(choices[0]);
          },
        ),

Image Buttons

Custom Widget to wrap an image


0 comments

There are no comments yet

Add new comment

Similar posts

Menus and Appbar actions

Outbound,Sending Customer UX Marketing

Cu Custom Widgets for Flutter

Cm Motion and Animation, EZ Widgets for Flutter