Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created December 17, 2018 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hitherejoe/7c0aaf3d411d0666fe2ba481a4957ee1 to your computer and use it in GitHub Desktop.
Save hitherejoe/7c0aaf3d411d0666fe2ba481a4957ee1 to your computer and use it in GitHub Desktop.
class Dashboard extends StatefulWidget {
Dashboard({Key key}) : super(key: key);
@override
_DashboardState createState() => new _DashboardState();
}
class _DashboardState extends State<Dashboard> {
...
@override
Widget build(BuildContext context) {
return DefaultTabController(
length: _currentCategory == 3 ? 1 : 3,
child: PlatformParent(
children: PlatformContent(),
...
));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment