mirror of
https://github.com/inventree/inventree-app.git
synced 2026-10-07 15:52:08 +00:00
Barcode refactor (#381)
* Simplify barcode scanning interface * Use consistent colors * Fix notches * Remove old comment
This commit is contained in:
1 parent
e9eb84eace
commit
925966c627
8 files changed
+45
-50
No files matched your search
@@ -102,15 +102,22 @@ mixin BaseWidgetProperties {
|
||||
iconSize: iconSize,
|
||||
onPressed: () {
|
||||
if (InvenTreeAPI().checkConnection()) {
|
||||
scanQrCode(context);
|
||||
scanBarcode(context);
|
||||
}
|
||||
},
|
||||
)
|
||||
];
|
||||
|
||||
return BottomAppBar(
|
||||
shape: CircularNotchedRectangle(),
|
||||
notchMargin: 20,
|
||||
shape: AutomaticNotchedShape(
|
||||
RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.all(Radius.circular(20)),
|
||||
),
|
||||
RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.all(Radius.circular(40)),
|
||||
),
|
||||
),
|
||||
notchMargin: 10,
|
||||
child: IconTheme(
|
||||
data: IconThemeData(color: Theme.of(context).colorScheme.onPrimary),
|
||||
child: Row(
|
||||
|
||||
Reference in new issue
Block a user