Skip to content

Commit

Permalink
restyle settings
Browse files Browse the repository at this point in the history
  • Loading branch information
maxisme committed Nov 3, 2021
1 parent b6a2d99 commit fbc7c87
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 20 deletions.
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class _MyAppState extends State<MyApp> {
letterSpacing: 0.2,
height: 1.2),
bodyText2: const TextStyle(
fontSize: 15,
fontSize: 16,
color: MyColour.black,
fontWeight: FontWeight.w500,
inherit: false,
Expand Down
2 changes: 1 addition & 1 deletion lib/notifications/notifications_table.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class NotificationTableState extends State<NotificationTable>
Color howToColour = Theme.of(context).colorScheme.primary;
Widget credentialsWidget;
if (credentials != null) {
howToLink = 'https://$httpEndpoint?c=$credentials#how-to';
howToLink = '$httpEndpoint?c=$credentials#how-to';
howToColour = Theme.of(context).colorScheme.secondary;
credentialsWidget = InkWell(
child: Text(credentials,
Expand Down
10 changes: 5 additions & 5 deletions lib/screens/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class SettingsScreenState extends State<SettingsScreen> {
SettingOption(
'How Do I Receive Notifications?', Akaricons.question,
onTapCallback: () async {
await openUrl('https://$httpEndpoint?c=$credentials#how-to');
await openUrl('$httpEndpoint?c=$credentials#how-to');
}),
credentialsSettingWidget
]);
Expand Down Expand Up @@ -312,11 +312,11 @@ class SettingOption extends StatelessWidget {
@override
Widget build(BuildContext context) {
final Container iconWidget = Container(
padding: const EdgeInsets.only(right: 10),
child: Icon(icon, size: 20, color: MyColour.black));
padding: const EdgeInsets.only(right: 15),
child: Icon(icon, size: 23, color: MyColour.black));

double verticalPadding = 0;
if (Platform.isLinux || Platform.isMacOS) verticalPadding = 10;
if (Platform.isLinux || Platform.isMacOS) verticalPadding = 13;
Widget setting;
if (switchCallback == null) {
setting = Container(
Expand All @@ -340,7 +340,7 @@ class SettingOption extends StatelessWidget {
)
]),
Icon(Akaricons.chevronRight,
size: 15, color: MyColour.black)
size: 20, color: MyColour.black)
])));
} else {
switchValue ??= false;
Expand Down
13 changes: 0 additions & 13 deletions macos/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,6 @@ PODS:
- path_provider_macos (0.0.1):
- FlutterMacOS
- PromisesObjC (2.0.0)
- Sentry (7.3.0):
- Sentry/Core (= 7.3.0)
- Sentry/Core (7.3.0)
- sentry_flutter (0.0.1):
- Flutter
- FlutterMacOS
- Sentry (~> 7.3.0)
- share_plus_macos (0.0.1):
- FlutterMacOS
- shared_preferences_macos (0.0.1):
Expand All @@ -112,7 +105,6 @@ DEPENDENCIES:
- package_info (from `Flutter/ephemeral/.symlinks/plugins/package_info/macos`)
- package_info_plus_macos (from `Flutter/ephemeral/.symlinks/plugins/package_info_plus_macos/macos`)
- path_provider_macos (from `Flutter/ephemeral/.symlinks/plugins/path_provider_macos/macos`)
- sentry_flutter (from `Flutter/ephemeral/.symlinks/plugins/sentry_flutter/macos`)
- share_plus_macos (from `Flutter/ephemeral/.symlinks/plugins/share_plus_macos/macos`)
- shared_preferences_macos (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_macos/macos`)
- Sparkle
Expand All @@ -131,7 +123,6 @@ SPEC REPOS:
- GoogleUtilities
- nanopb
- PromisesObjC
- Sentry
- Sparkle

EXTERNAL SOURCES:
Expand All @@ -157,8 +148,6 @@ EXTERNAL SOURCES:
:path: Flutter/ephemeral/.symlinks/plugins/package_info_plus_macos/macos
path_provider_macos:
:path: Flutter/ephemeral/.symlinks/plugins/path_provider_macos/macos
sentry_flutter:
:path: Flutter/ephemeral/.symlinks/plugins/sentry_flutter/macos
share_plus_macos:
:path: Flutter/ephemeral/.symlinks/plugins/share_plus_macos/macos
shared_preferences_macos:
Expand Down Expand Up @@ -190,8 +179,6 @@ SPEC CHECKSUMS:
package_info_plus_macos: f010621b07802a241d96d01876d6705f15e77c1c
path_provider_macos: 160cab0d5461f0c0e02995469a98f24bdb9a3f1f
PromisesObjC: 68159ce6952d93e17b2dfe273b8c40907db5ba58
Sentry: 9a4e621430e2dae4477d791f2f7e905720b6efbf
sentry_flutter: 08fadaed464f44e1233d3fbb0c72b10cebd79487
share_plus_macos: 853ee48e7dce06b633998ca0735d482dd671ade4
shared_preferences_macos: 480ce071d0666e37cef23fe6c702293a3d21799e
Sparkle: e1245ce5ba951c60183444a13a2c7d227778205d
Expand Down
Binary file modified test/golden-asserts/screen/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fbc7c87

Please sign in to comment.