Skip to content

Instantly share code, notes, and snippets.

@ijoschek ijoschek/.\lib\main.dart Secret
Last active Apr 8, 2019

Embed
What would you like to do?
flutter_bnb_tut
import 'package:flutter/material.dart';
import 'package:flutter_bnb_tut/content.dart';
// ...
class _MainPageState extends State<MainPage> {
int _currentIndex = 0;
final List<Widget> _children = [
ContentPage(title: "Home Page"),
ContentPage(title: "Messages Page"),
ContentPage(title: "Profile Page")
];
void _onBottomNavBarTab(int index) {
setState(() {
_currentIndex = index;
});
}
@override
Widget build(BuildContext context) {
// ...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.