网恋三要素:微信是否实名,对方是否留有手机号码,是否经常和对方看视频
在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