astab

A new Flutter package.

Getting Started


//DEFINE TAB ITEMS 
List<TabItem> tabItems() {
  return [
    new TabItem("Tab1", true, tabIcon: Icons.open_with),
    new TabItem("Tab2", true, tabIcon: Icons.home),
    new TabItem("Tab3", true, tabIcon: Icons.verified_user),
    new TabItem("Tab4", true, tabIcon: Icons.video_library),
    new TabItem("Tab5", true, tabIcon: Icons.navigation),
  ];
}

//DEFINE PAGES FOR TAB
List<Widget> pages() {
  return [
    new Tab1(),
    new Tab2(),
    new Tab3(),
    new Tab4(),
    new Tab5(),
  ];
}

//ADD TAB BAR IN YOUR APP
@override
Widget build(BuildContext context) {
  return MaterialApp(
    title: 'Tab Demo',
    home: TabBarController(pages(), ASTabs()),
  );
}

Libraries

astab