gs_flutter_widget 0.1.4 copy "gs_flutter_widget: ^0.1.4" to clipboard
gs_flutter_widget: ^0.1.4 copied to clipboard

outdated

A Flutter Package to create reusable widget for list. Simple and easy to use.

Pub size license

gs_flutter_widget #

A Flutter Package to create reusable widget for list. Simple and easy to use.

Usage #

Add the ListView in your screen. Then add GSFlutterWidget inside children attribute.
Full example


 @override
   Widget build(BuildContext context) {
     return Scaffold(
       appBar: AppBar(
         title: Text('GS Flutter Widget'),
       ),
       body: ListView(
         children: <Widget>[
           GSFlutterWidget.circleImageWithText(
             context,
             headerTitle: 'Circle Image With Text',
             headerShowIcon: false,
             itemCount: 4,
             itemTitle: (index) {
               return items[index].title;
             },
             itemImage: (index) {
               return items[index].image;
             },
             onItemClicked: (index) {
               print(items[index].title);
             },
           ),
           GSFlutterWidget.roundedSquareImage(
             context,
             headerTitle: 'Rounded Square Image',
             headerShowIcon: true,
             itemCount: items.length,
             itemImage: (index) {
               return items[index].image;
             },
             onItemClicked: (index) {
               print(items[index].title);
             },
           ),
         ],
       ),
     );
   }

2
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A Flutter Package to create reusable widget for list. Simple and easy to use.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on gs_flutter_widget