tabbed_scaffold 0.0.2+2 copy "tabbed_scaffold: ^0.0.2+2" to clipboard
tabbed_scaffold: ^0.0.2+2 copied to clipboard

A `Scaffold`-like widget that aims to reduce the code required and complexity of creating tab-bar navigation.

example/example.dart

import 'package:flutter/material.dart';

import 'package:tabbed_scaffold/tabbed_scaffold.dart';

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  List<ScaffoldTab> _tabs = [
    ScaffoldTab(
      title: const Text('Phone'),
      body: Container(
        color: Colors.amber,
      ),
      bottomNavigationBarItemIcon: Icon(Icons.phone),
    ),
    ScaffoldTab(
      title: const Text('Local Activity'),
      body: Container(
        color: Colors.green,
      ),
      bottomNavigationBarItemIcon: Icon(Icons.local_activity),
    ),
    ScaffoldTab(
      title: const Text('Dashboard'),
      body: Container(
        color: Colors.red,
      ),
      bottomNavigationBarItemIcon: Icon(Icons.dashboard),
    )
  ];

  @override
  Widget build(BuildContext context) {
    return TabbedScaffold(
      tabs: _tabs,
    );
  }
}
3
likes
40
pub points
10%
popularity

Publisher

unverified uploader

A `Scaffold`-like widget that aims to reduce the code required and complexity of creating tab-bar navigation.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

copyable, flutter, meta

More

Packages that depend on tabbed_scaffold