Android 我的flatter应用程序的底部总是溢出128像素,即使尝试将一些小部件包装在扩展的页面中

Android 我的flatter应用程序的底部总是溢出128像素,即使尝试将一些小部件包装在扩展的页面中,android,flutter,dart,Android,Flutter,Dart,我一直收到一个错误,说我的应用程序的一部分溢出了某些像素,当我在手机上开发它时,它看起来很好,但当我在其他设备上安装它时,我一直收到错误,我尝试将我的一些小部件包装在扩展的应用程序中,但我仍然收到错误 这就是我手机上的样子,看起来很棒 这是我的密码 import 'package:flutter/material.dart'; import 'package:hotel_search/FadeAnimation.dart'; import 'package:hotel_search/home

我一直收到一个错误,说我的应用程序的一部分溢出了某些像素,当我在手机上开发它时,它看起来很好,但当我在其他设备上安装它时,我一直收到错误,我尝试将我的一些小部件包装在扩展的应用程序中,但我仍然收到错误

这就是我手机上的样子,看起来很棒

这是我的密码

import 'package:flutter/material.dart';
import 'package:hotel_search/FadeAnimation.dart';
import 'package:hotel_search/home_page.dart';


import 'package:page_transition/page_transition.dart';

class StarterPage extends StatefulWidget {
  @override
  _StarterPageState createState() => _StarterPageState();
}

class _StarterPageState extends State<StarterPage> with TickerProviderStateMixin{
  AnimationController _animationController;
  Animation<double> _animation;

  bool _textVisible = true;

  @override
  void initState() {
    _animationController = AnimationController(
      vsync: this,
      duration: Duration(milliseconds: 100)
    );

    _animation = Tween<double>(
      begin: 1.0,
      end: 25.0
    ).animate(_animationController);

    super.initState();
  }

  @override
  void dispose() {
    _animationController.dispose();

    super.dispose();
  }

  void _onTap() {
    setState(() {
      _textVisible = false;
    });

    _animationController.forward().then((f) => 
      Navigator.push(context, PageTransition(type: PageTransitionType.fade, child: HomePage()))
    );
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        decoration: BoxDecoration(
          image: DecorationImage(
            image: AssetImage('assets/images/back.jpg'), 
            fit: BoxFit.cover
          )
        ),
        child: Container(
          decoration: BoxDecoration(
            gradient: LinearGradient(
              begin: Alignment.bottomCenter,
              colors: [
                Colors.black.withOpacity(.9),
                Colors.black.withOpacity(.8),
                Colors.black.withOpacity(.2),
              ]
            )
          ),
          child: Padding(
            padding: EdgeInsets.all(20.0),
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              mainAxisAlignment: MainAxisAlignment.end,
              children: <Widget>[

               Expanded(

           child:Container( 
             child: Column(
              
              children: <Widget>[
                Container( width: MediaQuery.of(context).size.width,height: 400, 
                child:FadeAnimation(.5, Image.asset(
              "assets/images/brand.png", 
              width: 0,
              height:0,  
              fit: BoxFit.contain,)),),
                SizedBox(height: 30,),
                
                Container( width: MediaQuery.of(context).size.width,
                child:FadeAnimation(.5, Text('Welcome', style: TextStyle(color: Colors.white, fontSize: 50, fontWeight: FontWeight.bold),)),), 
                SizedBox(height: 20,),

                
                Container( width: MediaQuery.of(context).size.width,
                child: FadeAnimation(1, Text("Sunbird Hotels and Resorts is Malawi’s leading hotel chain", style: TextStyle(color: Colors.white, height: 1.4, fontSize: 18),)),),
                SizedBox(height: 0,) 
                
                
              ]
             )
           ))   
           
                        
                ,Row(
                    children: <Widget>[
                
                  
                FadeAnimation(1.2, 
                
                ScaleTransition(
                  scale: _animation,
                  child: Container( 

                    width: MediaQuery.of(context).size.width/2.3,
                    decoration: BoxDecoration(
                      
                      color: Colors.white
                    ),
                    child: AnimatedOpacity(
                      opacity: _textVisible ? 1.0 : 0.0,
                      duration: Duration(milliseconds: 50),
                      child: MaterialButton(
                            onPressed: () {
                            Navigator.of(context).pushReplacement(MaterialPageRoute(
            builder: (BuildContext context) => HomePage()));
                              

                        },
                        minWidth: double.infinity,
                        child: Text("JOIN", style: TextStyle(color: Colors.black, fontSize: 20,fontWeight: FontWeight.w800),),
                      ),
                    )
                  )),
                ),


                SizedBox(width: 10,),

                 FadeAnimation(1.2, 
                
                ScaleTransition(
                  scale: _animation,
                  child: Container(

                     width: MediaQuery.of(context).size.width/2.3,
                    decoration: BoxDecoration(
                      
                      color: Color(0xff008d4b)
                    ),
                    child: AnimatedOpacity(
                      opacity: _textVisible ? 1.0 : 0.0,
                      duration: Duration(milliseconds: 50),
                      child: MaterialButton(
                        onPressed: () {
                            Navigator.of(context).pushReplacement(MaterialPageRoute(
            builder: (BuildContext context) => HomePage()));
                              

                        },
                        minWidth: double.infinity,
                        child: Text("SIGN IN", style: TextStyle(color: Colors.white, fontSize: 20,fontWeight: FontWeight.w800),),
                      ),
                    )
                  )),
                )
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                ]),










                SizedBox(height: 30,),
                FadeAnimation(1.4,
                AnimatedOpacity(
                  opacity: _textVisible ? 1.0 : 0.0,
                  duration: Duration(milliseconds: 50),
                  child: Align(
                    child: Text("Continue as a Guest", style: TextStyle(color: Colors.white70, fontSize: 15),),
                  ),
                )),
                SizedBox(height: 30,),
              ],
            ),
          ),
        ),
      ),
    );
  }
}
导入“包装:颤振/材料.省道”;
导入“套餐:hotel_search/FadeAnimation.dart”;
导入“套餐:酒店搜索/主页.dart”;
导入“package:page_transition/page_transition.dart”;
类StarterPage扩展了StatefulWidget{
@凌驾
_StarterPageState createState()=>\u StarterPageState();
}
类_StarterPageState使用TickerProviderStateMixin扩展状态{
AnimationController _AnimationController;
动画(动画),;
bool\u textVisible=true;
@凌驾
void initState(){
_animationController=animationController(
vsync:这个,,
持续时间:持续时间(毫秒:100)
);
_动画=吐温(
开始:1.0,
完:25.0
).设置动画(_animationController);
super.initState();
}
@凌驾
无效处置(){
_animationController.dispose();
super.dispose();
}
void_onTap(){
设置状态(){
_textVisible=false;
});
_animationController.forward()。然后((f)=>
推送(上下文,页面转换(类型:PageTransitionType.fade,子项:HomePage())
);
}
@凌驾
小部件构建(构建上下文){
返回脚手架(
主体:容器(
装饰:盒子装饰(
图像:装饰图像(
image:AssetImage('assets/images/back.jpg'),
适合:BoxFit.cover
)
),
子:容器(
装饰:盒子装饰(
梯度:线性梯度(
开始:对齐.bottomCenter,
颜色:[
颜色。黑色。不透明度(.9),
颜色。黑色。不透明度(.8),
颜色。黑色。不透明度(.2),
]
)
),
孩子:填充(
填充:所有边缘设置(20.0),
子:列(
crossAxisAlignment:crossAxisAlignment.start,
mainAxisAlignment:mainAxisAlignment.end,
儿童:[
扩大(
儿童:货柜(
子:列(
儿童:[
容器(宽度:MediaQuery.of(context).size.width,height:400,
子项:FadeAnimation(.5,Image.asset(
“资产/图像/品牌.png”,
宽度:0,
高度:0,,
适合:BoxFit.contain,),),
尺寸箱(高度:30,),
容器(宽度:MediaQuery.of(context).size.width,
子项:FadeAnimation(.5,文本('Welcome',样式:TextStyle(颜色:Colors.white,fontSize:50,fontWeight:fontWeight.bold),),),
尺寸箱(高度:20,),
容器(宽度:MediaQuery.of(context).size.width,
儿童:FadeAnimation(1,Text(“Sunbird Hotels and Resorts是马拉维领先的酒店连锁店”),风格:TextStyle(颜色:Colors.white,身高:1.4,字体大小:18),
大小框(高度:0,)
]
)
))   
,排(
儿童:[
FadeAnimation(1.2,
刻度转换(
比例:_动画,
儿童:货柜(
宽度:MediaQuery.of(context).size.width/2.3,
装饰:盒子装饰(
颜色:颜色。白色
),
儿童:动画能力(
不透明度:_textVisible?1.0:0.0,
持续时间:持续时间(毫秒:50),
子:材质按钮(
已按下:(){
导航器.of(上下文).pushReplacement(MaterialPage路线(
生成器:(BuildContext上下文)=>HomePage());
},
minWidth:double.infinity,
子项:文本(“连接”,样式:TextStyle(颜色:Colors.black,fontSize:20,fontwweight:fontwweight.w800),
),
)
)),
),
尺寸箱(宽度:10,),
FadeAnimation(1.2,
刻度转换(
比例:_动画,
子:容器(
宽度:MediaQuery.of(context).size.width/2.3,
装饰:盒子装饰(
颜色:颜色(0xff008d4b)
),
儿童:动画能力(
不透明度:_textVisible?1.0:0.0,
持续时间:持续时间(毫秒:50),
子:材质按钮(
已按下:(){
导航器.of(上下文).pushReplacement(MaterialPage路线(
生成器:(BuildContext上下文)=>HomePage());
},
minWidth:double.infinity,
子项:文本(“登录”,样式:TextStyle(颜色:Colors.white,fontSize:20,fontWeight:fontWeight.w800),
),
)
)),
)