Added navbar and deleted test folder
This commit is contained in:
32
inpus_touch/lib/NavBar.dart
Normal file
32
inpus_touch/lib/NavBar.dart
Normal file
@ -0,0 +1,32 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/scheduler.dart';
|
||||
import 'package:inpus_touch/MediumSizedContainer.dart';
|
||||
|
||||
class NavBar extends StatefulWidget {
|
||||
const NavBar({super.key});
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() => NavBarState();
|
||||
}
|
||||
|
||||
class NavBarState extends State<NavBar> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
/*
|
||||
final Brightness brightness =
|
||||
SchedulerBinding.instance.platformDispatcher.platformBrightness;
|
||||
|
||||
final bool isDark = brightness == Brightness.dark;
|
||||
|
||||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
image: DecorationImage(
|
||||
image: AssetImage(isDark
|
||||
? 'assets/clock icon dark.png'
|
||||
: 'assets/clock icon light.png'))));
|
||||
*/
|
||||
|
||||
return NavigationBar(destinations: getDestinations((selectedIcon, icon, label) => NavigationDestination(icon: icon, label: label, selectedIcon: selectedIcon,)));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user