A Scaffold which is ability to automatically select between bottom and side navigation as the screen size changes.

Features

  • Bottom Mode

    bottom

  • Side Mode

    side

Getting started

To use this plugin, add auto_scaffold as a dependency in your pubspec.yaml file.

Usage

Use AutoScaffold just like Scaffold.

AutoScaffold(
    saveState: true,
    tabPages: [
        TabPage(
            label: "Home",
            icon: Icon(Icons.home),
            selectedIcon: Icon(Icons.home_outlined),
            widget: Home(key: ValueKey("Home")),
        ),
        TabPage(
            label: "Star",
            icon: Icon(Icons.star),
            selectedIcon: Icon(Icons.star_border),
            widget: Home(key: ValueKey("Star")),
        ),
    ],
);

Additional information

Developer: Alfie

GitHub: yi226

Libraries

auto_scaffold_easy