Skip to content

Commit

Permalink
feat(ui): add shadow to back arrow on plant details screen for better…
Browse files Browse the repository at this point in the history
… visibility (#291)
  • Loading branch information
MDeLuise authored Aug 22, 2024
1 parent c5ce211 commit f5d03a1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions frontend/lib/plant_details/plant_details_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,16 @@ class _PlantDetailsPageState extends State<PlantDetailsPage> {
(BuildContext context, bool innerBoxIsScrolled) {
return <Widget>[
SliverAppBar(
iconTheme: const IconThemeData(
shadows: [
BoxShadow(
color: Colors.black,
spreadRadius: 10,
blurRadius: 10,
offset: Offset(0, 3),
),
],
),
pinned: true,
stretch: true,
expandedHeight: MediaQuery.of(context).size.height * .5,
Expand Down
10 changes: 10 additions & 0 deletions frontend/lib/search/species_details_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ class _SpeciesDetailsPageState extends State<SpeciesDetailsPage> {
(BuildContext context, bool innerBoxIsScrolled) {
return <Widget>[
SliverAppBar(
iconTheme: const IconThemeData(
shadows: [
BoxShadow(
color: Colors.black,
spreadRadius: 10,
blurRadius: 10,
offset: Offset(0, 3),
),
],
),
pinned: true,
stretch: true,
expandedHeight: MediaQuery.of(context).size.height * .5,
Expand Down

0 comments on commit f5d03a1

Please sign in to comment.