Skip to content

Commit

Permalink
chore: speed dial overlay für dark mode💅
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Czizikow committed Apr 14, 2020
1 parent 6dddaa3 commit df64160
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/screens/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ class _HomeScreenState extends State<HomeScreen> {
class _AndroidHome extends StatelessWidget {
@override
Widget build(BuildContext context) {
final ThemeData theme = Theme.of(context);
return DefaultTabController(
length: 2,
child: Scaffold(
Expand Down Expand Up @@ -122,7 +123,7 @@ class _AndroidHome extends StatelessWidget {
labelColor: Colors.white,
unselectedLabelColor: Colors.white,
indicator: TabBarIndicator(
color: Theme.of(context).primaryColorLight.withOpacity(0.3),
color: theme.primaryColorLight.withOpacity(0.3),
),
tabs: <Widget>[
Tab(
Expand Down Expand Up @@ -152,6 +153,9 @@ class _AndroidHome extends StatelessWidget {
child: Icon(Icons.add),
visible: true,
curve: Curves.decelerate,
overlayOpacity: theme.brightness == Brightness.dark ? 0.54 : 0.8,
overlayColor:
theme.brightness == Brightness.dark ? Colors.black : Colors.white,
children: [
SpeedDialChild(
child: const Icon(Icons.shopping_basket),
Expand Down

0 comments on commit df64160

Please sign in to comment.