Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class MyHomePage extends StatelessWidget {
final personNextToMe =
"That reminds me about the time when I was ten and our neighbour, her name was Mrs. Mable, and she said...";
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(Icons.airline_seat_legroom_reduced),
Expanded(
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Text(personNextToMe),
),
),
Icon(Icons.airline_seat_legroom_reduced)
],
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment