tab_scaffold 0.1.2 copy "tab_scaffold: ^0.1.2" to clipboard
tab_scaffold: ^0.1.2 copied to clipboard

A new Flutter package project.

tab_scaffold #

Widget that will create Scaffold ios like tab navigation.

Installation #

See instructions on how to install.

Usage #

    ScaffoldTab(
      tabIndex: _tabIndex
      pages: <Widget>[
        Center(child: Icon(Icons.home)),
        Center(child: Icon(Icons.train)),
      ],
      bottomNavigationBar: BottomAppBar(
        child: Builder(builder: (context) {
          return Row(
            children: <Widget>[
              FlatButton(
                child: Text('snack bar'),
                onPressed: () {
                  Scaffold.of(context).showSnackBar(SnackBar(
                    content: Text('Hello World!'),
                  ));
                },
              ),
              IconButton(
                icon: Icon(Icons.train),
                onPressed: () {
                  ScaffoldTab.of(context).openTab(1);
                },
              ),
            ],
          );
        }),
      ),
    );

Pass a tabIndex to ScaffoldTab widget to specify the currently active index.

ScaffoldTab also creates a Scaffold widget within, so Scaffold.of method is available for ScaffoldTab widget's descendent.

1
likes
10
pub points
0%
popularity

Publisher

unverified uploader

A new Flutter package project.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on tab_scaffold