From 86f6df94e2f02965ba1220d3a98b11073bf86d09 Mon Sep 17 00:00:00 2001 From: Muhammad Hamza Date: Fri, 6 Sep 2024 21:46:16 +0500 Subject: [PATCH] UI: dark-theme fixed text color --- lib/configs/core_theme.dart | 20 ++++++++++++-------- lib/widget/social_links.dart | 2 +- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/lib/configs/core_theme.dart b/lib/configs/core_theme.dart index 7dfb034..8e65c2a 100644 --- a/lib/configs/core_theme.dart +++ b/lib/configs/core_theme.dart @@ -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( @@ -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], + ), ); diff --git a/lib/widget/social_links.dart b/lib/widget/social_links.dart index 55746d5..1ed8b0d 100644 --- a/lib/widget/social_links.dart +++ b/lib/widget/social_links.dart @@ -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)