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

outdated

A `Scaffold`-like widget tailored for tab-bar navigation. When creating a [Scaffold] that uses a [BottomNavigationBar], it's not uncommon to end up with lengthy, unreadable code; this package provides [...]

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
0
pub points
10%
popularity

Publisher

unverified uploader

A `Scaffold`-like widget tailored for tab-bar navigation. When creating a [Scaffold] that uses a [BottomNavigationBar], it's not uncommon to end up with lengthy, unreadable code; this package provides a `TabbedScaffold` widget that aims to reduce the complexity of creating a tab-bar navigation.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

copier, flutter, meta

More

Packages that depend on tabbed_scaffold