Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
build the tabbar view
@override
Widget build(BuildContext context) {
return MaterialApp(
title: _title,
home: DefaultTabController(
length: createTabs().length,
child: Builder(builder: (BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text(_title),
centerTitle: true,
bottom: TabBar(
tabs: createTabs(),
),
),
body: TabBarView(
children: generateTabColumns(),
),
);
})));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment