From 34207997f62db9560a9a1570b2278601f836edc8 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 9 Jul 2025 14:15:36 +0200 Subject: [PATCH] Tried new design for im- and export-button --- lib/views/settings_view.dart | 39 ++++++++++++++++++++++++++++++++++-- pubspec.yaml | 2 +- 2 files changed, 38 insertions(+), 3 deletions(-) diff --git a/lib/views/settings_view.dart b/lib/views/settings_view.dart index 2e86122..8185d8a 100644 --- a/lib/views/settings_view.dart +++ b/lib/views/settings_view.dart @@ -107,7 +107,7 @@ class _SettingsViewState extends State { style: CustomTheme.rowTitle, ), ), - Padding( + /*Padding( padding: const EdgeInsets.only(top: 30), child: Center( heightFactor: 1, @@ -163,7 +163,42 @@ class _SettingsViewState extends State { ), ], )), - ) + ),*/ + Padding( + padding: const EdgeInsets.fromLTRB(10, 15, 10, 0), + child: CupertinoFormSection.insetGrouped( + backgroundColor: CustomTheme.backgroundColor, + margin: EdgeInsets.zero, + children: [ + CupertinoFormRow( + prefix: Row( + children: [ + Icon( + CupertinoIcons.square_arrow_up, + color: CustomTheme.primaryColor, + ), + const SizedBox(width: 10), + const Text('Spieldaten exportieren'), + ], + ), + padding: const EdgeInsets.symmetric( + vertical: 10, horizontal: 15), + child: const CupertinoListTileChevron()), + CupertinoFormRow( + prefix: Row( + children: [ + Icon( + CupertinoIcons.square_arrow_down, + color: CustomTheme.primaryColor, + ), + const SizedBox(width: 10), + const Text('Spieldaten importieren'), + ], + ), + padding: const EdgeInsets.symmetric( + vertical: 10, horizontal: 15), + child: const CupertinoListTileChevron()) + ])), ], ), Positioned( diff --git a/pubspec.yaml b/pubspec.yaml index 562b189..9b8aaa4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: cabo_counter description: "Mobile app for the card game Cabo" publish_to: 'none' -version: 0.3.9+331 +version: 0.3.9+333 environment: sdk: ^3.5.4