From 4dfa8a40be47be97e599dccfc2cf5fd3582c740c Mon Sep 17 00:00:00 2001 From: Daniyil Yakovlev Date: Mon, 17 Aug 2020 18:07:21 +0300 Subject: [PATCH] UI example fix --- example/lib/main.dart | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index a8b5cff..04e12ea 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -303,17 +303,16 @@ class _HomeScreenState extends State { } 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'), ); } }