Skip to content

Instantly share code, notes, and snippets.

@FlutterZeroGit
Last active July 11, 2022 01:11
Show Gist options
  • Save FlutterZeroGit/5656f5ed4809aec4eb509ca277957e9c to your computer and use it in GitHub Desktop.
Save FlutterZeroGit/5656f5ed4809aec4eb509ca277957e9c to your computer and use it in GitHub Desktop.
IconButton-effect
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,
highlightColor: Colors.lightBlue.withOpacity(0.3),
splashColor: Colors.grey.withOpacity(0.3),
splashRadius: 50,
onPressed: () {},
),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment