tabbed_scaffold 0.0.2+2
tabbed_scaffold: ^0.0.2+2

Flutter Android iOS web

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,
    );
  }
}
0
likes
90
pub points
55%
popularity

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

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

jfajardo200@gmail.com

License

MIT (LICENSE)

Dependencies

copyable, flutter, meta

More

Packages that depend on tabbed_scaffold