Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HansMuller/1590ea1f7f3109950fb094de24b56840 to your computer and use it in GitHub Desktop.
Save HansMuller/1590ea1f7f3109950fb094de24b56840 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
class Home extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Container(
color: Colors.green.withOpacity(0.25),
child: Row(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
IconButton(
onPressed: () { },
icon: const Icon(Icons.favorite),
),
IconButton(
onPressed: () { },
icon: const Icon(Icons.favorite),
),
],
),
),
),
);
}
}
void main() {
runApp(MaterialApp(home: Home()));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment