import 'package:flutter/material.dart'; import 'core/theme/app_theme.dart'; void main() { runApp(const MyAdhdApp()); } class MyAdhdApp extends StatelessWidget { const MyAdhdApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( title: 'myadhd', debugShowCheckedModeBanner: false, theme: AppTheme.darkTheme, home: const HomeScreen(), ); } } class HomeScreen extends StatefulWidget { const HomeScreen({super.key}); @override State createState() => _HomeScreenState(); } class _HomeScreenState extends State { int _currentIndex = 0; final List _tabs = [ 'Break it down', 'Focus timer', 'Dopamine menu', 'One thing', 'Brain dump', ]; @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( backgroundColor: Colors.transparent, elevation: 0, title: RichText( text: const TextSpan( style: TextStyle(fontSize: 22, fontWeight: FontWeight.bold), children: [ TextSpan(text: 'myadhd', style: TextStyle(color: AppTheme.text)), TextSpan(text: '.dev', style: TextStyle(color: AppTheme.accent)), ], ), ), ), body: Center( child: Text( _tabs[_currentIndex], style: const TextStyle(fontSize: 24, color: AppTheme.text), ), ), bottomNavigationBar: NavigationBar( selectedIndex: _currentIndex, onDestinationSelected: (i) => setState(() => _currentIndex = i), destinations: const [ NavigationDestination(icon: Icon(Icons.splitscreen), label: 'Break'), NavigationDestination(icon: Icon(Icons.timer_outlined), label: 'Timer'), NavigationDestination(icon: Icon(Icons.restaurant_menu), label: 'Menu'), NavigationDestination(icon: Icon(Icons.filter_center_focus), label: 'One Thing'), NavigationDestination(icon: Icon(Icons.inventory_2_outlined), label: 'Dump'), ], ), ); } }