Created
March 23, 2023 18:37
-
-
Save jlzapata/5ea78c6aafaf874803462b70024c5283 to your computer and use it in GitHub Desktop.
Flutter Badge bug
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(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
// This widget is the root of your application. | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
home: Scaffold( | |
body: Center( | |
child: IconButton( | |
onPressed: () {}, | |
icon: const Badge( | |
alignment: AlignmentDirectional.bottomStart, | |
child: Icon(Icons.square), | |
), | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment