gs_flutter_widget 1.0.2

Flutter Android iOS web

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);
              },
            ),
          ],
        ),
      );
    }

3
likes
90
pub points
44%
popularity

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

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

nicodemusdemuse@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on gs_flutter_widget