astab 0.0.3
astab: ^0.0.3 copied to clipboard

A flutter package ASTab is a delightful library for adding Tab based layout in your app with custom image and style for tabs.

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()),
  );
}
2
likes
80
pub points
0%
popularity

Publisher

atharvasystem.com

A flutter package ASTab is a delightful library for adding Tab based layout in your app with custom image and style for tabs.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on astab