Browse Source

safety

master
fmk 3 years ago
parent
commit
3d4430f5ef
  1. 2
      lib/mine/mine_view/mine_view.dart
  2. 8
      lib/qr/qr_code_scan.dart
  3. 1
      lib/store/store_view/store_order_page.dart

2
lib/mine/mine_view/mine_view.dart

@ -36,7 +36,7 @@ class _MineView extends State<MineView> {
children: [ children: [
InkWell( InkWell(
onTap: () { onTap: () {
// toScan(); toScan();
}, },
child: Container( child: Container(
padding: EdgeInsets.all(8.h), padding: EdgeInsets.all(8.h),

8
lib/qr/qr_code_scan.dart

@ -24,7 +24,7 @@ class _QrCodeScanPage extends State<QrCodeScanPage> {
void initState() { void initState() {
super.initState(); super.initState();
readerHeight = MediaQuery.of(context).size.height; readerHeight = 812;
Future.delayed(Duration(seconds: 1), () { Future.delayed(Duration(seconds: 1), () {
buildReaderView(); buildReaderView();
}); });
@ -40,9 +40,11 @@ class _QrCodeScanPage extends State<QrCodeScanPage> {
child: qrReaderView != null child: qrReaderView != null
? Column( ? Column(
children: [ children: [
Expanded(child: qrReaderView, flex: readerHeight.toInt(),), Expanded(
child: qrReaderView,
flex: readerHeight.toInt(),
),
// Expanded(child: qrReaderView, flex: readerHeight,), // Expanded(child: qrReaderView, flex: readerHeight,),
], ],
) )
: Container( : Container(

1
lib/store/store_view/store_order_page.dart

@ -76,6 +76,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
width: MediaQuery.of(context).size.width - 100.w, width: MediaQuery.of(context).size.width - 100.w,
child: ListView.builder( child: ListView.builder(
itemCount: 15, itemCount: 15,
padding: EdgeInsets.only(top: 25, bottom: 50),
// controller: widget.controller, // controller: widget.controller,
itemBuilder: (context, position) { itemBuilder: (context, position) {
return goodsItem(); return goodsItem();

Loading…
Cancel
Save