Browse Source

safety

master
fmk 3 years ago
parent
commit
3d4430f5ef
  1. 2
      lib/mine/mine_view/mine_view.dart
  2. 18
      lib/qr/qr_code_scan.dart
  3. 3
      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: [
InkWell(
onTap: () {
// toScan();
toScan();
},
child: Container(
padding: EdgeInsets.all(8.h),

18
lib/qr/qr_code_scan.dart

@ -24,7 +24,7 @@ class _QrCodeScanPage extends State<QrCodeScanPage> {
void initState() {
super.initState();
readerHeight = MediaQuery.of(context).size.height;
readerHeight = 812;
Future.delayed(Duration(seconds: 1), () {
buildReaderView();
});
@ -39,12 +39,14 @@ class _QrCodeScanPage extends State<QrCodeScanPage> {
Positioned(
child: qrReaderView != null
? Column(
children: [
Expanded(child: qrReaderView, flex: readerHeight.toInt(),),
// Expanded(child: qrReaderView, flex: readerHeight,),
],
)
children: [
Expanded(
child: qrReaderView,
flex: readerHeight.toInt(),
),
// Expanded(child: qrReaderView, flex: readerHeight,),
],
)
: Container(
width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.height,
@ -90,7 +92,7 @@ class _QrCodeScanPage extends State<QrCodeScanPage> {
}
QrReaderView qrReaderView;
double readerHeight ;
double readerHeight;
buildReaderView() async {
double screenWidth = MediaQuery.of(context).size.width;

3
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,
child: ListView.builder(
itemCount: 15,
padding: EdgeInsets.only(top: 25, bottom: 50),
// controller: widget.controller,
itemBuilder: (context, position) {
return goodsItem();
@ -97,7 +98,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
crossAxisAlignment: CrossAxisAlignment.center,
children: [
GestureDetector(
onTap: () {
onTap:() {
setState(() {
isSelected = index;
});

Loading…
Cancel
Save