fix deprecate methods

fix_ssl_master
suvaissov 2021-01-18 12:47:59 +06:00
parent 50b3694cac
commit 923e32274a
5 changed files with 27 additions and 19 deletions

View File

@ -29,24 +29,30 @@ class BottomBar extends StatelessWidget {
? BottomNavigationBarItem( ? BottomNavigationBarItem(
backgroundColor: menuColor, backgroundColor: menuColor,
icon: Icon(MdiIcons.cashRegister, color: Colors.white), icon: Icon(MdiIcons.cashRegister, color: Colors.white),
title: new Text( label: 'Касса',
'Касса', // title: new Text(
style: TextStyle(color: Colors.white), // 'Касса',
)) // style: TextStyle(color: Colors.white),
// )
)
: BottomNavigationBarItem( : BottomNavigationBarItem(
backgroundColor: menuColor, backgroundColor: menuColor,
icon: Icon(MdiIcons.calculator, color: Colors.white), icon: Icon(MdiIcons.calculator, color: Colors.white),
title: new Text( label: 'Калькулятор',
'Калькулятор', // title: new Text(
style: TextStyle(color: Colors.white), // 'Калькулятор',
)), // style: TextStyle(color: Colors.white),
// )
),
BottomNavigationBarItem( BottomNavigationBarItem(
backgroundColor: menuColor, backgroundColor: menuColor,
icon: Icon(MdiIcons.tune, color: Colors.white), icon: Icon(MdiIcons.tune, color: Colors.white),
title: new Text( label: 'Опции'
'Опции', // title: new Text(
style: TextStyle(color: Colors.white), // 'Опции',
)), // style: TextStyle(color: Colors.white),
// )
),
], ],
onTap: (index) { onTap: (index) {
pageController.animateToPage( pageController.animateToPage(

View File

@ -85,6 +85,7 @@ class _HomeViewState extends State<HomeView> {
converter: (store) => store.state.settingState, converter: (store) => store.state.settingState,
builder: (context, vm) { builder: (context, vm) {
return PageView( return PageView(
pageSnapping: true,
onPageChanged: (index) { onPageChanged: (index) {
setState(() { setState(() {
selectedTabIndex = index; selectedTabIndex = index;

View File

@ -78,7 +78,8 @@ class _ProductAddBottomSheetState extends State<ProductAddBottomSheet> {
decimal: false, decimal: false,
), ),
inputFormatters: <TextInputFormatter>[ inputFormatters: <TextInputFormatter>[
WhitelistingTextInputFormatter.digitsOnly // WhitelistingTextInputFormatter.digitsOnly
FilteringTextInputFormatter.digitsOnly
], ],
controller: countController, controller: countController,
onChanged: calcOnChange, onChanged: calcOnChange,
@ -95,7 +96,7 @@ class _ProductAddBottomSheetState extends State<ProductAddBottomSheet> {
keyboardType: keyboardType:
const TextInputType.numberWithOptions(decimal: true), const TextInputType.numberWithOptions(decimal: true),
inputFormatters: <TextInputFormatter>[ inputFormatters: <TextInputFormatter>[
WhitelistingTextInputFormatter(RegExp("^[0-9.]*")), FilteringTextInputFormatter.allow(RegExp("^[0-9.]*")),
], ],
controller: priceController, controller: priceController,
onChanged: calcOnChange, onChanged: calcOnChange,

View File

@ -122,7 +122,7 @@ class _DialogManagerState extends State<DialogManager> {
inputFormatters: <TextInputFormatter>[ inputFormatters: <TextInputFormatter>[
if (request.formatType == "phone") maskFormatter, if (request.formatType == "phone") maskFormatter,
if (request.formatType == null) if (request.formatType == null)
WhitelistingTextInputFormatter(RegExp("^[0-9.]*")), FilteringTextInputFormatter.allow(RegExp("^[0-9.]*")),
], ],
) )
], ],

View File

@ -84,7 +84,7 @@ packages:
name: device_info name: device_info
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.4.2+10" version: "1.0.0"
device_info_platform_interface: device_info_platform_interface:
dependency: transitive dependency: transitive
description: description:
@ -145,7 +145,7 @@ packages:
name: flutter_redux name: flutter_redux
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.6.0" version: "0.7.0"
flutter_screenutil: flutter_screenutil:
dependency: "direct main" dependency: "direct main"
description: description:
@ -169,7 +169,7 @@ packages:
name: get_it name: get_it
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "4.0.4" version: "5.0.4"
google_fonts: google_fonts:
dependency: "direct main" dependency: "direct main"
description: description:
@ -372,7 +372,7 @@ packages:
name: responsive_builder name: responsive_builder
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.2.0+2" version: "0.3.0"
shared_preferences: shared_preferences:
dependency: transitive dependency: transitive
description: description: