Skip to content

Commit fbb05b2

Browse files
authored
Merge pull request #229 from amitamrutiya2210/issue-149-theme-rss-feed
slove theme issue at RSSFeedHomePage
2 parents 72ddc9b + eb5cf60 commit fbb05b2

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

lib/Components/RSSFeedHomePage.dart

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
128128
? Container(
129129
key: Key("Feeds are fetched"),
130130
decoration: BoxDecoration(
131-
border: Border.all(color: Colors.white38),
131+
border: Border.all(
132+
color: ThemeProvider.theme(widget.index)
133+
.disabledColor),
132134
borderRadius: BorderRadius.only(
133135
topRight: Radius.circular(8),
134136
topLeft: Radius.circular(8),
@@ -294,7 +296,9 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
294296
height: 1,
295297
width: double.infinity,
296298
decoration: BoxDecoration(
297-
color: Colors.white12,
299+
color: ThemeProvider.theme(
300+
widget.index)
301+
.dividerColor,
298302
),
299303
),
300304
)
@@ -1392,7 +1396,9 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
13921396
? Container(
13931397
key: Key("Rules Displayed"),
13941398
decoration: BoxDecoration(
1395-
border: Border.all(color: Colors.white38),
1399+
border: Border.all(
1400+
color: ThemeProvider.theme(widget.index)
1401+
.disabledColor),
13961402
borderRadius: BorderRadius.only(
13971403
topRight: Radius.circular(8),
13981404
topLeft: Radius.circular(8),
@@ -1616,7 +1622,9 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
16161622
height: 1,
16171623
width: double.infinity,
16181624
decoration: BoxDecoration(
1619-
color: Colors.white12,
1625+
color: ThemeProvider.theme(
1626+
widget.index)
1627+
.dividerColor,
16201628
),
16211629
),
16221630
)

lib/Constants/theme_provider.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ class MyThemes {
4141
),
4242
),
4343
highlightColor: Color(0xff415062),
44+
disabledColor: Colors.white38,
45+
dividerColor: Colors.white12,
4446
);
4547
static final lightTheme = ThemeData(
4648
brightness: Brightness.light,
@@ -69,5 +71,7 @@ class MyThemes {
6971
),
7072
),
7173
highlightColor: Color(0xff415062),
74+
disabledColor: Colors.black38,
75+
dividerColor: Colors.black12,
7276
);
7377
}

0 commit comments

Comments
 (0)