From ef5ec15be37bb819f3029391a75b9144fa6d3c72 Mon Sep 17 00:00:00 2001 From: AutoComplete Date: Sat, 11 Nov 2023 10:01:38 +0100 Subject: [PATCH] fix: iOS boxShadow flickering; drag divider color; smaller gap between token list and appName; --- .../main_view/main_view_widgets/drag_target_divider.dart | 4 ++++ .../main_view_widgets/main_view_tokens_list.dart | 2 +- .../token_widgets/token_widget_tile.dart | 8 +++++--- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/views/main_view/main_view_widgets/drag_target_divider.dart b/lib/views/main_view/main_view_widgets/drag_target_divider.dart index d68b5103f..86a52262a 100644 --- a/lib/views/main_view/main_view_widgets/drag_target_divider.dart +++ b/lib/views/main_view/main_view_widgets/drag_target_divider.dart @@ -51,6 +51,8 @@ class _DragTargetDividerState extends ConsumerState extends ConsumerState { if (sortables.isEmpty) return []; sortables.sort((a, b) => a.compareTo(b)); // just for small space between appBar and first element - widgets.add(const SizedBox(height: 20)); + widgets.add(const SizedBox(height: 2)); for (var i = 0; i < sortables.length; i++) { final isFirst = i == 0; final isDraggingTheCurrent = draggingSortable == sortables[i]; diff --git a/lib/views/main_view/main_view_widgets/token_widgets/token_widget_tile.dart b/lib/views/main_view/main_view_widgets/token_widgets/token_widget_tile.dart index b3ec3daa5..a03166091 100644 --- a/lib/views/main_view/main_view_widgets/token_widgets/token_widget_tile.dart +++ b/lib/views/main_view/main_view_widgets/token_widgets/token_widget_tile.dart @@ -41,17 +41,19 @@ class TokenWidgetTile extends StatelessWidget { @override Widget build(BuildContext context) => Container( - margin: const EdgeInsets.only(left: 20.0, right: 20.0), + margin: const EdgeInsets.only(left: 20.0, top: 0.1, right: 20.0, bottom: 0.1), decoration: BoxDecoration( color: Colors.transparent, borderRadius: const BorderRadius.only( + topLeft: Radius.circular(10), + topRight: Radius.circular(10), bottomLeft: Radius.circular(10), bottomRight: Radius.circular(10)), boxShadow: [ BoxShadow( color: Colors.black.withOpacity(0.2), - spreadRadius: 5, - blurRadius: 7, + spreadRadius: 1, + blurRadius: 2, offset: const Offset(0, 3), ), ],