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
| default class LotsOfStyles extends Component { | |
| render() { | |
| return ( | |
| <View style={styles.greybox}> | |
| <Text>Lorem Ipsum</Text> | |
| </View> | |
| ); | |
| } | |
| } |
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
| container = new Container( // grey box | |
| child: new Text( | |
| "Lorem ipsum", | |
| style: new TextStyle( | |
| fontSize: 24.0 | |
| fontWeight: FontWeight.w900, | |
| fontFamily: "Georgia", | |
| ), | |
| ), | |
| width: 320.0, |
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
| @override | |
| Widget build(BuildContext context) { | |
| return Scaffold( | |
| appBar: AppBar( | |
| title: Text(...), | |
| ), | |
| body: SafeArea( | |
| child: PropertyList(...), | |
| ), | |
| ); |
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
| 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, |
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
| @override | |
| Widget build(BuildContext context) { | |
| return Column( | |
| children: <Widget>[ | |
| TextField( | |
| controller: _searchController, | |
| decoration: InputDecoration( | |
| hintText: 'Address', | |
| border: OutlineInputBorder(), | |
| ), |