diff --git a/lib/src/components/best_friends_selector.dart b/lib/src/components/best_friends_selector.dart index 1b2f0f0..e134a17 100644 --- a/lib/src/components/best_friends_selector.dart +++ b/lib/src/components/best_friends_selector.dart @@ -33,7 +33,35 @@ class BestFriendsSelector extends StatelessWidget { return Column( children: [ - HeadLineComponent(context.lang.shareImageBestFriends), + Row( + children: [ + Expanded( + child: HeadLineComponent(context.lang.shareImageBestFriends), + ), + if (!isRealTwonly) + GestureDetector( + onTap: () { + for (final user in users) { + updateStatus(user.userId, true); + } + }, + child: Container( + padding: EdgeInsets.symmetric(horizontal: 7, vertical: 4), + decoration: BoxDecoration( + color: Theme.of(context).colorScheme.outline.withAlpha(50), + boxShadow: [ + BoxShadow( + blurRadius: 10.9, + color: Color.fromRGBO(0, 0, 0, 0.1), + ), + ], + borderRadius: BorderRadius.circular(8.0), + ), + child: Text("Alle auswählen", style: TextStyle(fontSize: 10)), + ), + ), + ], + ), Column( spacing: 8, children: List.generate( diff --git a/lib/src/components/headline.dart b/lib/src/components/headline.dart index b0d8431..cf73589 100644 --- a/lib/src/components/headline.dart +++ b/lib/src/components/headline.dart @@ -12,7 +12,7 @@ class HeadLineComponent extends StatelessWidget { padding: EdgeInsets.symmetric(horizontal: 4.0, vertical: 10), child: Text( text, - style: TextStyle(fontSize: 18), + style: TextStyle(fontSize: 17), ), ); } diff --git a/lib/src/views/camera_to_share/share_image_view.dart b/lib/src/views/camera_to_share/share_image_view.dart index c8a2229..0756786 100644 --- a/lib/src/views/camera_to_share/share_image_view.dart +++ b/lib/src/views/camera_to_share/share_image_view.dart @@ -162,6 +162,13 @@ class _ShareImageView extends State { padding: EdgeInsets.only(bottom: 40, left: 10, top: 20, right: 10), child: Column( children: [ + if (showRealTwonlyWarning) + Text( + context.lang.shareImageAllTwonlyWarning, + style: TextStyle(color: Colors.orange, fontSize: 13), + textAlign: TextAlign.center, + ), + if (showRealTwonlyWarning) const SizedBox(height: 10), Padding( padding: EdgeInsets.symmetric(horizontal: 10), child: TextField( @@ -170,12 +177,6 @@ class _ShareImageView extends State { context, context.lang.searchUsernameInput), ), ), - if (showRealTwonlyWarning) const SizedBox(height: 10), - if (showRealTwonlyWarning) - Text( - context.lang.shareImageAllTwonlyWarning, - style: TextStyle(color: Colors.orange), - ), const SizedBox(height: 10), BestFriendsSelector( users: _bestFriends,