Last active
July 11, 2022 00:56
-
-
Save FlutterZeroGit/9e1c166abe7782afafcb5625aec5f69c to your computer and use it in GitHub Desktop.
IconButton-basic
This file contains 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
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
home: Scaffold( | |
appBar: AppBar( | |
title: Text('FlutterZero'), | |
), | |
body: Center( | |
child: IconButton( | |
icon: Icon(Icons.home), | |
color: Colors.blue, | |
iconSize: 50, | |
onPressed: () {}, | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment