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

Libraries

_section_header_widget
circle_image_with_text_widget
gs_color
gs_flutter_widget
gs_font_weight
gs_style
rounded_square_image_widget
rounded_square_image_with_author_widget
rounded_square_image_with_button_widget
square_circle_with_button_widget
square_with_rating_widget
standard_large_vertical_widget
standard_medium_horizontal_widget
standard_small_horizontal_widget
standard_small_vertical_widget