astab 0.0.1

Flutter Android iOS web

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

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

Homepage

Documentation

API reference

Uploader

ketul@atharvasystem.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on astab