Skip to content

Commit

Permalink
UI: dark-theme fixed text color
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmzdev committed Sep 6, 2024
1 parent b72cac7 commit 86f6df9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
20 changes: 12 additions & 8 deletions lib/configs/core_theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ final themeLight = ThemeData(
fontFamily: fontFamily,
splashColor: Colors.transparent,
scaffoldBackgroundColor: Colors.white,
colorScheme: ColorScheme.fromSwatch(primarySwatch: Colors.red)
colorScheme: ColorScheme.fromSwatch(
primarySwatch: Colors.red,
)
.copyWith(
secondary: Colors.black,
brightness: Brightness.light,
surface: Colors.white,
)
.copyWith(surface: Colors.white),
.copyWith(
surface: Colors.white,
),
);

final themeDark = ThemeData(
Expand All @@ -29,10 +33,10 @@ final themeDark = ThemeData(
fontFamily: fontFamily,
splashColor: Colors.transparent,
scaffoldBackgroundColor: Colors.black,
colorScheme: ColorScheme.fromSwatch(primarySwatch: Colors.red)
.copyWith(
secondary: const Color(0xffC0392B),
brightness: Brightness.dark,
)
.copyWith(surface: Colors.grey[800]),
colorScheme: ColorScheme.fromSwatch(
primarySwatch: Colors.red,
brightness: Brightness.dark,
).copyWith(
surface: Colors.grey[800],
),
);
2 changes: 1 addition & 1 deletion lib/widget/social_links.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class SocialLinks extends StatelessWidget {
color: appProvider.isDark ? Colors.white : Colors.black,
height: Responsive.isMobile(context)
? AppDimensions.normalize(10)
: null,
: AppDimensions.normalize(12),
),
iconSize: Responsive.isMobile(context)
? AppDimensions.normalize(10)
Expand Down

0 comments on commit 86f6df9

Please sign in to comment.