mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-16 12:15:31 +00:00
Barcode scanner updates (#562)
* Add BUILDING.md * Replace scaning library - Out with qr_code_scanner - In with flutter_zxing * Update specs for jdk / kotlin / gradle - NFI what this all means? * Refactor barcode scanning widget * Refactor barcode overlay * Add handlers * Update release notes * Fix AppBar color * Enhance attachment widget * remove unused import * Improved icon * Select theme from main drawer
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import "package:adaptive_theme/adaptive_theme.dart";
|
||||
import "package:flutter/material.dart";
|
||||
import "package:flutter_tabler_icons/flutter_tabler_icons.dart";
|
||||
|
||||
@ -185,6 +186,28 @@ class InvenTreeDrawer extends StatelessWidget {
|
||||
)
|
||||
);
|
||||
|
||||
tiles.add(Divider());
|
||||
|
||||
bool darkMode = AdaptiveTheme.of(context).mode.isDark;
|
||||
|
||||
tiles.add(
|
||||
ListTile(
|
||||
onTap: () {
|
||||
AdaptiveTheme.of(context).toggleThemeMode();
|
||||
_closeDrawer();
|
||||
},
|
||||
title: Text(L10().colorScheme),
|
||||
subtitle: Text(L10().colorSchemeDetail),
|
||||
leading: Icon(
|
||||
TablerIcons.sun_moon,
|
||||
color: COLOR_ACTION
|
||||
),
|
||||
trailing: Icon(
|
||||
darkMode ? TablerIcons.moon : TablerIcons.sun,
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
tiles.add(
|
||||
ListTile(
|
||||
title: Text(L10().settings),
|
||||
|
Reference in New Issue
Block a user