Skip to content

Instantly share code, notes, and snippets.

@anoochit
Created October 31, 2023 05:23
Show Gist options
  • Save anoochit/d1c324d23ae206840edf70b93802e7a5 to your computer and use it in GitHub Desktop.
Save anoochit/d1c324d23ae206840edf70b93802e7a5 to your computer and use it in GitHub Desktop.
consult bottom navigation
import 'package:flutter/material.dart';
class HomePage extends StatefulWidget {
const HomePage({super.key});
@override
State<HomePage> createState() => _HomePageState();
}
class _HomePageState extends State<HomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(),
body: Container(),
bottomNavigationBar: BottomNavigationBar(
type: BottomNavigationBarType.fixed,
items: const [
BottomNavigationBarItem(icon: Icon(Icons.home), label: "Home"),
BottomNavigationBarItem(icon: Icon(Icons.home), label: "Home"),
BottomNavigationBarItem(icon: Icon(Icons.home), label: "Home"),
BottomNavigationBarItem(icon: Icon(Icons.home), label: "Home"),
],
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment