Untitled
unknown
plain_text
2 years ago
2.0 kB
6
Indexable
return Scaffold( appBar: AppBar( title: const Text("Edit Product"), ), body: Form( child: Container( height: 200, child: ListView( padding: const EdgeInsets.all(10), children: [ TextFormField( decoration: const InputDecoration(labelText: 'Title'), textInputAction: TextInputAction.next, ), TextFormField( decoration: const InputDecoration(labelText: 'Price'), keyboardType: TextInputType.number, textInputAction: TextInputAction.next, ), TextFormField( decoration: const InputDecoration(labelText: 'Description'), keyboardType: TextInputType.multiline, maxLines: 3, ), Row( children: [ Container( width: 100, height: 100, margin: const EdgeInsets.only(top: 8, right: 10), decoration: BoxDecoration( border: Border.all( width: 1, color: Colors.grey, ), ), child: _imageUrlController.text.isEmpty ? Text("ENTER URL") : FittedBox( child: Image.network(_imageUrlController.text), ), ), TextFormField( decoration: InputDecoration(labelText: "Image URL"), keyboardType: TextInputType.url, textInputAction: TextInputAction.done, controller: _imageUrlController, ), ], ), ], ), ), ), ); }
Editor is loading...