首页 > 编程知识 正文

flutter自动布局,flutter刷新页面

时间:2023-05-06 13:23:17 阅读:136405 作者:3888

网恋三要素:微信是否实名,对方是否留有手机号码,是否经常和对方看视频

在pubspec.yaml文件中设置图像依赖关系

# forinformationonthegenericdartpartofthisfile, see the # following page :https://dart.dev/tools/pub/pub spec # thefollowingsectionisspecifictoflutter.flutter 360 # thefollowinglineensuresthatthematerialiconsfontis # includedwithyourapplication, sothatyoucanusetheiconsin # thematerialiconsclass.uses-material-design 3360 true assets 360 # assets-generator-begin IC _ delete.pngclassinputpageextendsstatefulwidget { @ override _ restartwidgetstatecreatestate ()=_ ) overrride _ reste class _ restartwidgetstateextendsstateinputpage {//controllertexteditingcontroller _ uname controller=定义texteditingcooller的@ overridewidgetbuild (buildcontextcontext ) reture in:edgeinsets.only ) left : child : row (children : [ expanded (flex :1,child:container ) child 3: ter ) decorrrer },controller : _ uname controller, controller (设置)、gesturedetector(ontap: ) _unamecontroller.controller (,child : container (alignment 3360 ) ) decoration 3360 box decoration (color : colors.white,border3360border.all ) color:colors.purple, width : 2.0 border radius 3360 border radius.all (radius.circular (10.0 ) )、)、)、 decoration 3360 box decoration color 333330 border.all (color : colors.purple,width: 2.0 )、 border radius 3360 border radius.all ) radius.circulalaaall app bar : app bar (background color : color (0x fffffff ),title se textfield )、syle : text style (color : colors.blue,)、elevation: 0.0、centerTitle: true,); }

属性说明

textfield(autofocus:true,解码:输入解密)标签文本: '密码',hintText: '您的登录密码',controller : _ uname controller、controller的设定),

prefix icon : image.asset (r.assetsimgicpassword ),textfield (auto focus : true,decoration3360inputdecoration ) ) prefix icon : image.asset (r.assetsimgicpassword )、border: InputBorder.none、onchanne、controller : _ u uname

执行结果

I/flutter(734 ) 3360编辑框的值:编辑框执行I/flutter(734 ) ) 3360编辑框的值:编辑框执行I/flutter(734 ) ) 3366

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。