import 'package:flutter/material.dart'; void main() => runApp(const LearningDemo()); class LearningDemo extends StatelessWidget { const LearningDemo({super.key}); @override Widget build(BuildContext context) => MaterialApp( debugShowCheckedModeBanner: false, title: 'TBBJ Learning Demo', theme: ThemeData(colorSchemeSeed: Colors.indigo, useMaterial3: true), home: const DemoHome(), ); } class DemoHome extends StatefulWidget { const DemoHome({super.key}); @override State createState() => _DemoHomeState(); } class _DemoHomeState extends State { int selected = 0; final pages = const [ Center(child: Text('Dashboard — DEMO ONLY')), Center(child: Text('Family Registration — DEMO ONLY')), Center(child: Text('Member Profile — DEMO ONLY')), ]; @override Widget build(BuildContext context) => Scaffold( appBar: AppBar(title: const Text('TBBJ Learning Demo')), body: pages[selected], bottomNavigationBar: NavigationBar( selectedIndex: selected, onDestinationSelected: (i) => setState(() => selected = i), destinations: const [ NavigationDestination(icon: Icon(Icons.dashboard), label: 'Home'), NavigationDestination(icon: Icon(Icons.group_add), label: 'Family'), NavigationDestination(icon: Icon(Icons.person), label: 'Profile'), ], ), ); }