Skip to content

An open-source cross-platform alternative to AirDrop

fix: mobile button theme

Tien Do Nam7e65114d068c
diff --git a/lib/theme.dart b/lib/theme.dart
index 6f4baf7b..7431c20d 100644
--- a/lib/theme.dart
+++ b/lib/theme.dart
@@ -37,12 +37,12 @@ ThemeData getTheme(Brightness brightness) {
elevatedButtonTheme: ElevatedButtonThemeData(
style: ElevatedButton.styleFrom(
foregroundColor: brightness == Brightness.dark ? Colors.white : null,
- padding: defaultTargetPlatform == TargetPlatform.windows ? const EdgeInsets.symmetric(horizontal: 8, vertical: 16) : null,
+ padding: defaultTargetPlatform == TargetPlatform.windows ? const EdgeInsets.symmetric(horizontal: 8, vertical: 16) : const EdgeInsets.all(8),
),
),
textButtonTheme: TextButtonThemeData(
style: TextButton.styleFrom(
- padding: defaultTargetPlatform == TargetPlatform.windows ? const EdgeInsets.symmetric(horizontal: 8, vertical: 16) : null,
+ padding: defaultTargetPlatform == TargetPlatform.windows ? const EdgeInsets.symmetric(horizontal: 8, vertical: 16) : const EdgeInsets.all(8),
),
),
);