DEV Community

Cover image for Flutter Pills Button Widget
GetWidget
GetWidget

Posted on • Updated on

Flutter Pills Button Widget

Have you checked out our GetFlutter Library you can find more details on our GitHub repo: https://github.com/ionicfirebaseapp/getwidget

How to use GetFlutter Pills Button

You will get Flutter Pills Button by adding out component GFButtonShape.pills.

Sample Code:

import 'package:getflutter/components/button/gf_button.dart';

GFButton(
onPressed: (){},
text: "primary",
shape: GFButtonShape.pills,
),

Disabled Button
To do that just disable button onPressed:

Sample Code:

import 'package:getwidget/components/button/gf_button.dart';

GFButton(
onPressed: null,
text: "primary",
shape: GFButtonShape.pills,
),

Block Button

Sample code:

import 'package:getwidget/components/button/gf_button.dart';

GFButton(
onPressed: (){},
text: "primary",
shape: GFButtonShape.pills,
blockButton: true,
),

If you would like read more details of each component and it uses then you can check out our documentation https://docs.getwidget.dev/gf-button/pills-button and share your feedback to us to make a more perfect open-source library for Flutter.

Top comments (0)