Skip to content

Instantly share code, notes, and snippets.

@override
Widget build(BuildContext context) {
return Column(
children: <Widget>[
TextField(
controller: _searchController,
decoration: InputDecoration(
hintText: 'Address',
border: OutlineInputBorder(),
),
ImageHero extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Hero(tag: tag, child: ...);
}}
//source Screen
ImageHero.fromImage(
tag: property.id, //same Id
image: property.thumb,
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(...),
),
body: SafeArea(
child: PropertyList(...),
),
);
container = new Container( // grey box
child: new Text(
"Lorem ipsum",
style: new TextStyle(
fontSize: 24.0
fontWeight: FontWeight.w900,
fontFamily: "Georgia",
),
),
width: 320.0,
default class LotsOfStyles extends Component {
render() {
return (
<View style={styles.greybox}>
<Text>Lorem Ipsum</Text>
</View>
);
}
}