问题描述
我正在尝试学习如何编写一个简单的扩展程序(我不是开发人员,所以请对我温柔点)。
这是我的代码:
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('GigoClean',style: TextStyle(
fontFamily: 'Roboto',),centerTitle: true,backgroundColor: Colors.cyanAccent[400],`body: Center(
child: Stack(
children: <Widget>[
Container(
decoration: new Boxdecoration(
image: new decorationImage(image: new Assetimage("assets/bg.png"),fit: BoxFit.cover,Column(
children: [
Container(
padding: EdgeInsets.fromLTRB(0,90.0,0),child: Image.asset('assets/intro.jpg'),Container(
padding: EdgeInsets.fromLTRB(15,40,15,child: Text('Get ready to make your life easy with single click of app,which makes your cleaning easy.',textAlign: TextAlign.center,
现在我可以看到 2 个字段,但是当我写一个从 0 到 9 的数字时什么也没有发生(我猜这会生成一个随机密码。
你能帮我吗?
解决方法
尝试改变
oninput: "makeid()",
到:
oninput: makeid,