Created
January 10, 2020 05:01
-
-
Save preetjdp/0acdc3ebef330f717813fc5163de0ccb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| debugShowCheckedModeBanner: false, | |
| home: Scaffold( | |
| body: Column(children: <Widget>[ | |
| Expanded( | |
| child: ListTile( | |
| leading: CircleAvatar( | |
| backgroundImage: NetworkImage( | |
| 'https://images.pexels.com/photos/20787/pexels-photo.jpg?auto=compress&cs=tinysrgb&dpr=1&w=500')), | |
| title: Container( | |
| color: Colors.blue, | |
| width: 250.0, | |
| child: TextFormField( | |
| textAlign: TextAlign.center, | |
| style: TextStyle(fontSize: 20.0, color: Colors.white), | |
| cursorColor: Colors.white, | |
| maxLines: null, | |
| minLines: null, | |
| expands: true, | |
| decoration: InputDecoration( | |
| hintText: 'Write something...', | |
| border: InputBorder.none, | |
| hintStyle: TextStyle( | |
| fontSize: 20.0, fontWeight: FontWeight.bold), | |
| fillColor: Colors.blue)))), | |
| ) | |
| ])), | |
| ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment