Skip to content

Commit

Permalink
UI example fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yadaniyil committed Aug 17, 2020
1 parent 11cca1a commit 4dfa8a4
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -303,17 +303,16 @@ class _HomeScreenState extends State<HomeScreen> {
}

Widget _directionalBadge() {
return Badge(
position: BadgePosition.topEnd(),
padding: EdgeInsetsDirectional.only(end: 4),
badgeContent: Icon(
Icons.error,
size: 16.0,
color: Colors.red,
return Padding(
padding: const EdgeInsets.only(bottom: 12.0),
child: Badge(
elevation: 0,
position: BadgePosition.topEnd(),
padding: EdgeInsetsDirectional.only(end: 4),
badgeColor: Colors.transparent,
badgeContent: Icon(Icons.error, size: 16.0, color: Colors.red),
child: Text('This is RTL'),
),
badgeColor: Colors.transparent,
elevation: 0,
child: Text('Ignore battery optimizations'),
);
}
}

0 comments on commit 4dfa8a4

Please sign in to comment.