Skip to content

Commit

Permalink
Merge pull request #54 from 0Nom4D/FIX.Accessibility.RSS
Browse files Browse the repository at this point in the history
Fixing accessibility for home page
  • Loading branch information
0Nom4D authored May 20, 2024
2 parents a9bd529 + 6226354 commit dc5c3bd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
8 changes: 5 additions & 3 deletions lib/src/views/home_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,12 @@ class _HomeViewState extends State<HomeView> implements AutomaticKeepAliveClient
SliverAppBar(
backgroundColor: Theme.of(context).colorScheme.surface,
toolbarHeight: MediaQuery.of(context).size.height * .05,
collapsedHeight: MediaQuery.of(context).size.height * .05,
expandedHeight: MediaQuery.of(context).size.height * .1,
collapsedHeight: MediaQuery.of(context).size.height * .075,
expandedHeight: MediaQuery.of(context).size.height * .15,
pinned: true,
elevation: 20,
elevation: 5,
scrolledUnderElevation: 5,
forceElevated: true,
centerTitle: true,
flexibleSpace: const PersistentSearchBar()
),
Expand Down
10 changes: 6 additions & 4 deletions lib/src/widgets/rss/rss_feed_element.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ class NewsArticleItem extends StatelessWidget {
),
child: ShaderMask(
shaderCallback: (Rect bounds) => LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [
Colors.transparent,
Theme.of(context).colorScheme.primary.withOpacity(.25),
Theme.of(context).colorScheme.primary.withOpacity(.75),
Theme.of(context).colorScheme.primary.withOpacity(.5),
Theme.of(context).colorScheme.primary.withOpacity(.75)
Theme.of(context).colorScheme.primary.withOpacity(.25),
Colors.transparent
],
stops: const [.0, .05, .25, .65]
stops: const [0.0, 0.75, 0.95, 1]
).createShader(bounds),
blendMode: BlendMode.srcATop,
child: Image.network(
Expand Down

0 comments on commit dc5c3bd

Please sign in to comment.