scaffold_responsive 1.0.0 copy "scaffold_responsive: ^1.0.0" to clipboard
scaffold_responsive: ^1.0.0 copied to clipboard

outdated

A responsive scaffold widget that adjusts to your device size, for your flutter mobile and web apps.

scaffold_responsive #

A responsive scaffold widget that adjusts to your device size, for your flutter mobile and web apps.

Demo

Usage #

class MyHomePage extends StatefulWidget {
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  String tab;

  void setTab(String newTab) {
    setState(() {
      tab = newTab;
    });
  }

  @override
  Widget build(BuildContext context) {
    return ResponsiveScaffold(
      title: Text('Responsive Scaffold Demo'),
      body: Center(
        child: Text('Selected tab: $tab'),
      ),
      tabs: [
        {
          'title': 'Chapter A',
          'children': [
            {'title': 'Chapter A1'},
            {'title': 'Chapter A2'},
          ],
        },
        {
          'title': 'Chapter B',
          'children': [
            {'title': 'Chapter B1'},
            {
              'title': 'Chapter B2',
              'children': [
                {'title': 'Chapter B2a'},
                {'title': 'Chapter B2b'},
              ],
            },
          ],
        },
        {
          'title': 'Chapter C',
        },
      ],
      onTabChanged: setTab,
    );
  }
}
19
likes
0
pub points
64%
popularity

Publisher

verified publishertusharsadhwani.dev

A responsive scaffold widget that adjusts to your device size, for your flutter mobile and web apps.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_sidebar

More

Packages that depend on scaffold_responsive