Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/http/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 颤振应用程序在发布应用程序模式下显示白色屏幕?_Flutter_Dart - Fatal编程技术网

Flutter 颤振应用程序在发布应用程序模式下显示白色屏幕?

Flutter 颤振应用程序在发布应用程序模式下显示白色屏幕?,flutter,dart,Flutter,Dart,朋友们好,我在颤振应用程序中遇到了非常奇怪的问题!当在调试模式下测试我的应用程序时,其工作正常,而在发布模式下,它显示白色屏幕。实际上,此应用程序已在playstore中发布。几天后,我更改此应用程序。当尝试构建发布时,它想发布第二个版本。apk在调试模式下,其显示白色屏幕。工作正常。为什么会发生此情况?是否存在颤振版本问题?请检查在下面 两张屏幕截图? 检查这些图片 这是代码 import 'package:flutter/cupertino.dart'; import 'package:

朋友们好,我在颤振应用程序中遇到了非常奇怪的问题!当在调试模式下测试我的应用程序时,其工作正常,而在发布模式下,它显示白色屏幕。实际上,此应用程序已在playstore中发布。几天后,我更改此应用程序。当尝试构建发布时,它想发布第二个版本。apk在调试模式下,其显示白色屏幕。工作正常。为什么会发生此情况?是否存在颤振版本问题?请检查在下面 两张屏幕截图?

检查这些图片

这是代码

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:tv/Online.dart';
import 'package:tv/paypal.dart';
import 'package:url_launcher/url_launcher.dart';


class Donateus extends StatefulWidget {
  @override
  _DonateusState createState() => _DonateusState();
}

class _DonateusState extends State<Donateus> {
  bool _isExpandedonline=false;
  bool _isExpandedpaypal=false;
  bool _isExpandedetransfer=false;
  bool _isExpandedtexttogive=false;

  void customLaunch(command) async {
    if (await canLaunch(command)) {
      await launch(command);
    } else {
      print(' could not launch $command');
    }
  }
  @override
  void initState() {
    // TODO: implement initState
    super.initState();

  }
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SingleChildScrollView(
        scrollDirection: Axis.vertical,
        child:Padding(
          padding: EdgeInsets.all(10),

          child: Container(
            child:Expanded(
              child: Column(
                children: <Widget>[
                  Text(
                    'WAYS TO DONATE',
                    style: TextStyle(
                      fontFamily: 'TT NORMS',
                      fontSize: 20,
                      fontWeight: FontWeight.w100,
                    ),


                  ),
                  Padding(
                    padding: EdgeInsets.only(left: 10),
                    child: Text(
                      'All of our Donations are processed through Cornerstone Asian Church.We are a registered Canadian Charity (842869265RR0001). A Canadian Tax-deductible receipt will be issued to you.',
                      style: TextStyle(

                          fontSize: 14
                      ),
                    ),
                  ),
                  Padding(
                    padding: EdgeInsets.only(left: 10),
                    child: ExpansionTile(
                        onExpansionChanged: (value) {
                          _isExpandedonline=value;
                          setState(() {});
                        },
                        children: <Widget>[
                          Text(
                            'Give a single gift, or schedule a recurring amount by using your Credit cards (i.e Mastercard, VISA, AMEX).'
                                'Note: Cornerstone uses the giving provider, Tithe.ly to securely process online donations from all over the world. Our Church will cover all associated fees for this service which are 2.5% + 15 cents (CAD) for all  Credit Cards. AMEX is 3.5% + 30 cents (CAD). However, if you wish to cover the fees as well, you can click on the option to "Cover Fees".',style: TextStyle(

                            fontSize: 14,


                          ),)
                        ],

                        title: Row(
                          children: <Widget>[
                            Image.asset(
                              'images/online.png',
                            ),
                            GestureDetector(
                              onTap: () {
                                Navigator.push(
                                  context,
                                  MaterialPageRoute(
                                      builder: (context) => Online()),
                                );
                              },
                              child: Text(

                                'Online Giving',
                                style: TextStyle(
                                  fontFamily: 'TT NORMS',
                                  fontSize: 18,
                                  fontWeight: FontWeight.w100,
                                  color: _isExpandedonline ? Colors.amber[800] : Colors.black,

                                ),


                              ),

                            )

                          ],


                        )),

                  ),

                  Padding(
                    padding: EdgeInsets.only(left: 10),
                    child: ExpansionTile(
                        onExpansionChanged: (value) {
                          _isExpandedpaypal=value;
                          setState(() {});
                        },
                        children: <Widget>[
                          Text(
                            'You can send your funds through PayPal to email livinghopetv@cornerstoneasianchurch.com',style: TextStyle(
                            fontSize: 14,


                          ),)
                        ],
                        title: Row(
                          children: <Widget>[
                            Image.asset(
                              'images/paypal.png',
                            ),
                            Padding(
                              padding: EdgeInsets.only(left: 10),
                              child: Text(
                                'PAYPAL',
                                style: TextStyle(

                                  fontFamily: 'TT NORMS',
                                  color:_isExpandedpaypal ? Colors.amber[800] : Colors.black,
                                  fontSize: 18,
                                  fontWeight: FontWeight.w100,
                                ),
                              ),
                            ),
                            GestureDetector(
                              onTap: () {
                                Navigator.push(
                                  context,
                                  MaterialPageRoute(
                                      builder: (context) => paypal()),
                                );
                              },
                              child: Image.asset(
                                'images/donatebutton.png',
                                height: 33,
                              ),
                            )
                          ],
                        )),
                  ),
                  Padding(
                    padding: EdgeInsets.only(left: 10),

                    child: ExpansionTile(
                        onExpansionChanged: (value) {
                          _isExpandedetransfer=value;
                          setState(() {});
                        },
                        children: <Widget>[
                          Text(
                            'You can send your funds via Interac E-Transfer to email*',style: TextStyle(
                            fontSize: 14,


                          ),),

                          Text(
                            '
    cacoffering@gmail.com',
                            style: TextStyle(
                              color: Colors.blue,
                              fontSize: 18,

                            ),
                          ),

                          Text(
                            '
    This is an auto-deposit account
    so you you do not have to set up any password.
    Please do indicate the Purpose for your donation.
    This service is only available within Canada.',style: TextStyle(
                            fontSize: 14,


                          ),),
                        ],
                        title: Row(
                          children: <Widget>[
                            Image.asset(
                              'images/etransfer.png',
                              height: 28,
                            ),
                            Text(
                              'INTERAC E-TRANSFER',
                              style: TextStyle(

                                fontFamily: 'TT NORMS',
                                fontSize: 18,
                                fontWeight: FontWeight.w100,
                                color:_isExpandedetransfer? Colors.amber[800] : Colors.black,

                              ),
                            ),
                          ],
                        )),
                  ),
                  Padding(
                    padding: EdgeInsets.only(left: 10),
                    child: ExpansionTile(
                        onExpansionChanged: (value) {
                          _isExpandedtexttogive=value;
                          setState(() {});
                        },
                        children: <Widget>[
                          Text('STEP 1: TEXT the word GIVE to',style: TextStyle(
                            fontSize: 14,


                          ),),
                          Text(
                            '(844) 329-1637',
                            style: TextStyle(
                              color: Colors.red,
                            ),
                          ),
                          SizedBox(
                            height: 20,
                          ),
                          Text(
                            'STEP 2: Complete the information on link received via TEXT for the first time only.',style:TextStyle(
                            fontSize: 14,


                          ),),
                          SizedBox(
                            height: 20,
                          ),
                          Text(
                            'STEP 3: Once you are setup for TEXT GIVING you can continue to TEXT the amount without having to fill your information again. Simply TEXT the amounti.e 10, 15 etc to the number directly.',style: TextStyle(
                            fontSize: 14,


                          ),)
                        ],
                        title: Row(
                          children: <Widget>[
                            Image.asset(
                              'images/text.png',
                              height: 30,
                            ),
                            GestureDetector(
                              onTap: () {
                                customLaunch('sms:8443291637');
                              },
                              child: Padding(
                                padding: EdgeInsets.only(left: 10),
                                child: Text(
                                  'TEXT TO GIVE',
                                  style: TextStyle(
                                    fontSize: 18,
                                    fontWeight: FontWeight.w100,
                                    fontFamily: 'TT NORMS',
                                    color:_isExpandedtexttogive? Colors.amber[800] : Colors.black,

                                  ),
                                ),
                              ),
                            )
                          ],
                        )),
                  ),
                ],
              ),
            ),
          ),
        ),
      ),
    );
  }
}
import'包装:flift/cupertino.dart';
进口“包装:颤振/材料.省道”;
导入“package:flatter/widgets.dart”;
导入“包装:tv/Online.dart”;
导入“包:tv/paypal.dart”;
导入“package:url_launcher/url_launcher.dart”;
类Donateus扩展StatefulWidget{
@凌驾
_DonateusState createState()=>\u DonateUstate();
}
类_DonateusState扩展状态{
bool _isExpandedonline=false;
bool _isExpandedpaypal=false;
bool _isexpandedtransfer=false;
bool _isExpandedtexttogive=false;
void customLaunch(命令)异步{
如果(等待canLaunch(命令)){
等待发射(命令);
}否则{
打印('无法启动$command');
}
}
@凌驾
void initState(){
//TODO:实现initState
super.initState();
}
@凌驾
小部件构建(构建上下文){
返回脚手架(
正文:SingleChildScrollView(
滚动方向:轴垂直,
孩子:填充(
填充:边缘设置。全部(10),
子:容器(
儿童:扩大(
子:列(
儿童:[
正文(
"捐赠方式",,
样式:TextStyle(
丰特家族:“TT规范”,
尺寸:20,
fontWeight:fontWeight.w100,
),
),
填充物(
填充:仅限边缘设置(左:10),
子:文本(
“我们所有的捐款都通过基石亚洲教会处理。我们是加拿大注册慈善机构(842869265RR0001)。我们将向您开具加拿大免税收据。”,
样式:TextStyle(
尺寸:14
),
),
),
填充物(
填充:仅限边缘设置(左:10),
子文件:扩展文件(
OneExpansionChanged:(值){
_isExpandedonline=值;
setState((){});
},
儿童:[
正文(
“使用您的信用卡(如万事达卡、VISA卡、美国运通卡)赠送一份礼物,或安排一笔经常性金额。”
注:基石使用捐赠提供商Tithe.ly安全地处理来自世界各地的在线捐赠。我们的教会将支付该服务的所有相关费用,所有信用卡的相关费用为2.5%+15美分(CAD)。美国运通的相关费用为3.5%+30美分(CAD)。但是,如果您希望支付这些费用,您可以单击“保险费”。,样式:TextStyle(
尺寸:14,
),)
],
标题:世界其他地区(
儿童:[
影像资产(
“images/online.png”,
),
手势检测器(
onTap:(){
导航器。推(
上下文
材料路线(
生成器:(上下文)=>Online()),
);
},
子:文本(
"网上捐赠",,
样式:TextStyle(
丰特家族:“TT规范”,
尺码:18,
fontWeight:fontWeight.w100,
颜色:_isExpandedonline?颜色。琥珀色[800]:颜色。黑色,
),
),
)
],
)),
),
填充物(
填充:仅限边缘设置(左:10),
子文件:扩展文件(
OneExpansionChanged:(值){
_isExpandedpaypal=值;
setState((){});
},
儿童:[
正文(
您可以通过PayPal将资金发送至电子邮件livinghopetv@cornerstoneasianchurch.com,style:TextStyle(
尺寸:14,
),)
],
标题:世界其他地区(
儿童:[
影像资产(
“images/paypal.png”,
),
填充物(
填充:仅限边缘设置(左:10),
子:文本(
“贝宝”,
样式:TextStyle(
丰特家族:“TT规范”,
颜色:_isExpandedpaypal?颜色。琥珀色[800]:颜色。黑色,
尺码:18,
fontWeight:fontWeight.w100,
),
),
),
手势检测器(
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SingleChildScrollView(
        scrollDirection: Axis.vertical,
        child:Padding(
          padding: EdgeInsets.all(10),
          child: Column(
                children: ... 
            ),
          ),
        ),
    );
  }
child: Container(
            child:Expanded(
              child: Column(
Expanded(
      child: Container(),
    ),
Row(
  children: [
    Expanded(
      child: MyWidget(),
    ),
    Expanded(
      child:Text("Text Widget"),
    ),
  ],
)
shrinkResources false
minifyEnabled false
useProguard false