Merge branch 'master' into backend_nfc
# Conflicts: # android/app/build.gradle # lib/views/home/home_view.dart # pubspec.yamlbackend_nfc
commit
54df0728f3
|
|
@ -34,7 +34,7 @@ if (keystorePropertiesFile.exists()) {
|
|||
|
||||
|
||||
android {
|
||||
compileSdkVersion 28
|
||||
compileSdkVersion 29
|
||||
|
||||
sourceSets {
|
||||
main.java.srcDirs += 'src/main/kotlin'
|
||||
|
|
|
|||
|
|
@ -29,24 +29,30 @@ class BottomBar extends StatelessWidget {
|
|||
? BottomNavigationBarItem(
|
||||
backgroundColor: menuColor,
|
||||
icon: Icon(MdiIcons.cashRegister, color: Colors.white),
|
||||
title: new Text(
|
||||
'Касса',
|
||||
style: TextStyle(color: Colors.white),
|
||||
))
|
||||
label: 'Касса',
|
||||
// title: new Text(
|
||||
// 'Касса',
|
||||
// style: TextStyle(color: Colors.white),
|
||||
// )
|
||||
)
|
||||
: BottomNavigationBarItem(
|
||||
backgroundColor: menuColor,
|
||||
icon: Icon(MdiIcons.calculator, color: Colors.white),
|
||||
title: new Text(
|
||||
'Калькулятор',
|
||||
style: TextStyle(color: Colors.white),
|
||||
)),
|
||||
label: 'Калькулятор',
|
||||
// title: new Text(
|
||||
// 'Калькулятор',
|
||||
// style: TextStyle(color: Colors.white),
|
||||
// )
|
||||
),
|
||||
BottomNavigationBarItem(
|
||||
backgroundColor: menuColor,
|
||||
icon: Icon(MdiIcons.tune, color: Colors.white),
|
||||
title: new Text(
|
||||
'Опции',
|
||||
style: TextStyle(color: Colors.white),
|
||||
)),
|
||||
label: 'Опции'
|
||||
// title: new Text(
|
||||
// 'Опции',
|
||||
// style: TextStyle(color: Colors.white),
|
||||
// )
|
||||
),
|
||||
],
|
||||
onTap: (index) {
|
||||
pageController.animateToPage(
|
||||
|
|
|
|||
|
|
@ -78,7 +78,8 @@ class _ProductAddBottomSheetState extends State<ProductAddBottomSheet> {
|
|||
decimal: false,
|
||||
),
|
||||
inputFormatters: <TextInputFormatter>[
|
||||
WhitelistingTextInputFormatter.digitsOnly
|
||||
// WhitelistingTextInputFormatter.digitsOnly
|
||||
FilteringTextInputFormatter.digitsOnly
|
||||
],
|
||||
controller: countController,
|
||||
onChanged: calcOnChange,
|
||||
|
|
@ -95,7 +96,7 @@ class _ProductAddBottomSheetState extends State<ProductAddBottomSheet> {
|
|||
keyboardType:
|
||||
const TextInputType.numberWithOptions(decimal: true),
|
||||
inputFormatters: <TextInputFormatter>[
|
||||
WhitelistingTextInputFormatter(RegExp("^[0-9.]*")),
|
||||
FilteringTextInputFormatter.allow(RegExp("^[0-9.]*")),
|
||||
],
|
||||
controller: priceController,
|
||||
onChanged: calcOnChange,
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ class _DialogManagerState extends State<DialogManager> {
|
|||
inputFormatters: <TextInputFormatter>[
|
||||
if (request.formatType == "phone") maskFormatter,
|
||||
if (request.formatType == null)
|
||||
WhitelistingTextInputFormatter(RegExp("^[0-9.]*")),
|
||||
FilteringTextInputFormatter.allow(RegExp("^[0-9.]*")),
|
||||
],
|
||||
)
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in New Issue