Skip to content

Commit

Permalink
Updated to Material3
Browse files Browse the repository at this point in the history
  • Loading branch information
dchristl committed Mar 29, 2024
1 parent 684993c commit a562ce7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 15 deletions.
6 changes: 2 additions & 4 deletions macless_haystack/lib/accessory/accessory_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ class _AccessoryListState extends State<AccessoryList> {
accessory.name);
}
},
backgroundColor: Colors.blue,
foregroundColor: Colors.white,
foregroundColor: Theme.of(context).primaryColor,
icon: Icons.directions,
label: 'Navigate',
),
Expand All @@ -111,8 +110,7 @@ class _AccessoryListState extends State<AccessoryList> {
)),
);
},
backgroundColor: Colors.orange,
foregroundColor: Colors.white,
backgroundColor: Theme.of(context).primaryColor,
icon: Icons.history,
label: 'History',
),
Expand Down
3 changes: 1 addition & 2 deletions macless_haystack/lib/dashboard/dashboard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class Dashboard extends StatefulWidget {
}

class _DashboardState extends State<Dashboard> {

/// A list of the tabs displayed in the bottom tab bar.
late final List<Map<String, dynamic>> _tabs = [
{
Expand Down Expand Up @@ -143,7 +142,7 @@ class _DashboardState extends State<Dashboard> {
))
.toList(),
currentIndex: _selectedIndex,
selectedItemColor: Theme.of(context).indicatorColor,
unselectedItemColor: Theme.of(context).secondaryHeaderColor,
onTap: _onItemTapped,
),
floatingActionButton:
Expand Down
9 changes: 3 additions & 6 deletions macless_haystack/lib/item_management/item_file_import.dart
Original file line number Diff line number Diff line change
Expand Up @@ -273,18 +273,15 @@ class _ItemFileImportState extends State<ItemFileImport> {
appBar: AppBar(
title: const Text('Select Accessories'),
actions: [
TextButton(
ElevatedButton(
onPressed: () {
if (accessories != null) {
_importSelectedAccessories();
Navigator.of(context, rootNavigator: true).pop();
}
},
child: Text(
'Import',
style: TextStyle(
color: accessories == null ? Colors.grey : Colors.white,
),
child: const Text(
'Import'
),
),
],
Expand Down
4 changes: 1 addition & 3 deletions macless_haystack/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ class MyApp extends StatelessWidget {
child: MaterialApp(
title: 'Macless Haystack',
theme: ThemeData(
brightness: Brightness.light,
primarySwatch: Colors.blue,
primaryColor: Colors.blue
primarySwatch: Colors.blue
),
darkTheme: ThemeData.dark(),
home: const AppLayout(),
Expand Down

0 comments on commit a562ce7

Please sign in to comment.