Skip to content

Instantly share code, notes, and snippets.

@jlzapata
Created March 23, 2023 18:37
Show Gist options
  • Save jlzapata/5ea78c6aafaf874803462b70024c5283 to your computer and use it in GitHub Desktop.
Save jlzapata/5ea78c6aafaf874803462b70024c5283 to your computer and use it in GitHub Desktop.
Flutter Badge bug
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