Skip to content

Instantly share code, notes, and snippets.

@preetjdp
Created January 10, 2020 05:01
Show Gist options
  • Select an option

  • Save preetjdp/0acdc3ebef330f717813fc5163de0ccb to your computer and use it in GitHub Desktop.

Select an option

Save preetjdp/0acdc3ebef330f717813fc5163de0ccb to your computer and use it in GitHub Desktop.
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