Skip to content

Instantly share code, notes, and snippets.

@josue1dario2
Created November 13, 2022 20:02
Show Gist options
  • Save josue1dario2/f18792f8c7cfece09b148b4075451a87 to your computer and use it in GitHub Desktop.
Save josue1dario2/f18792f8c7cfece09b148b4075451a87 to your computer and use it in GitHub Desktop.
Row Custom button Flutter
class HomeScreen extends StatelessWidget {
const HomeScreen({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
Size size = MediaQuery.of(context).size;
return Scaffold(
body: Center(
child: Row(
children: [
SizedBox(width: size.width * 0.024),
const CustomButton(
textButton: 'AGENDA',
iconButton: Icon(
Icons.calendar_today_outlined,
color: Colors.white,
),
navigator: 'diary_screen',
),
const CustomButton(
textButton: 'JUEGO',
iconButton: Icon(
Icons.location_on_outlined,
color: Colors.white,
),
navigator: 'game_screen',
),
],
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment