Skip to content

Commit 34b9c83

Browse files
authored
Merge pull request #147 from ManavSarkar/master
Fixed light theme colour issue for bottom sheet
2 parents 155fe32 + 4dd2bf3 commit 34b9c83

File tree

4 files changed

+15
-18
lines changed

4 files changed

+15
-18
lines changed

lib/Components/RSSFeedHomePage.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
872872
isScrollControlled: true,
873873
context: context,
874874
backgroundColor: ThemeProvider
875-
.theme.backgroundColor,
875+
.theme.primaryColorLight,
876876
builder: (context) {
877877
return ListView(
878878
shrinkWrap: true,

lib/Components/add_automatic_torrent.dart

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,11 @@ class _AddAutoTorrentState extends State<AddAutoTorrent> {
6464
height: 60,
6565
width: double.infinity,
6666
decoration: BoxDecoration(
67-
border: Border.all(color: Colors.white38),
68-
borderRadius: BorderRadius.only(
69-
topRight: Radius.circular(8),
70-
topLeft: Radius.circular(8),
71-
bottomLeft: Radius.circular(8),
72-
bottomRight: Radius.circular(8),
73-
),
67+
border: Border.all(
68+
color: ThemeProvider.themeMode == ThemeMode.light
69+
? Colors.black38
70+
: Colors.white38),
71+
borderRadius: BorderRadius.circular(8),
7472
color: ThemeProvider.theme.primaryColorLight,
7573
),
7674
child: Row(

lib/Components/bottom_floating_menu_button.dart

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class _BottomFloatingMenuButtonState extends State<BottomFloatingMenuButton>
100100
),
101101
isScrollControlled: true,
102102
context: context,
103-
backgroundColor: ThemeProvider.theme.backgroundColor,
103+
backgroundColor: ThemeProvider.theme.primaryColorLight,
104104
builder: (context) {
105105
return ListView(shrinkWrap: true, children: [
106106
Padding(
@@ -128,13 +128,12 @@ class _BottomFloatingMenuButtonState extends State<BottomFloatingMenuButton>
128128
height: 60,
129129
width: double.infinity,
130130
decoration: BoxDecoration(
131-
border: Border.all(color: Colors.white38),
132-
borderRadius: BorderRadius.only(
133-
topRight: Radius.circular(8),
134-
topLeft: Radius.circular(8),
135-
bottomLeft: Radius.circular(8),
136-
bottomRight: Radius.circular(8),
137-
),
131+
border: Border.all(
132+
color: ThemeProvider.themeMode ==
133+
ThemeMode.light
134+
? Colors.black38
135+
: Colors.white38),
136+
borderRadius: BorderRadius.circular(8),
138137
color:
139138
ThemeProvider.theme.primaryColorLight,
140139
),
@@ -396,7 +395,7 @@ class _BottomFloatingMenuButtonState extends State<BottomFloatingMenuButton>
396395
),
397396
isScrollControlled: true,
398397
context: context,
399-
backgroundColor: ThemeProvider.theme.backgroundColor,
398+
backgroundColor: ThemeProvider.theme.primaryColorLight,
400399
builder: (context) {
401400
return ListView(shrinkWrap: true, children: [
402401
Padding(

lib/Pages/home_screen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class _HomeScreenState extends State<HomeScreen> {
9191
),
9292
isScrollControlled: true,
9393
context: context,
94-
backgroundColor: ThemeProvider.theme.backgroundColor,
94+
backgroundColor: ThemeProvider.theme.primaryColorLight,
9595
builder: (context) {
9696
return AddAutoTorrent(
9797
base64: base64, imageBytes: imageBytes, uriString: uriString);

0 commit comments

Comments
 (0)