Accent color

This commit is contained in:
Hillel Coren 2020-07-31 12:27:40 +03:00
parent 244b09ccb4
commit c062d34e8b
1 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_redux/flutter_redux.dart';
import 'package:invoiceninja_flutter/data/models/models.dart';
import 'package:invoiceninja_flutter/redux/app/app_state.dart';
import 'package:invoiceninja_flutter/utils/icons.dart';
import 'package:invoiceninja_flutter/utils/localization.dart';
@ -20,6 +22,8 @@ class ActionMenuButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
final store = StoreProvider.of<AppState>(context);
final state = store.state;
final List<PopupMenuEntry<EntityAction>> actions = [];
if (isSaving) {
@ -28,7 +32,12 @@ class ActionMenuButton extends StatelessWidget {
icon: SizedBox(
width: 26,
height: 26,
child: CircularProgressIndicator(),
child: CircularProgressIndicator(
valueColor: AlwaysStoppedAnimation<Color>(
state.prefState.enableDarkMode || state.hasAccentColor
? Colors.white
: state.accentColor),
),
),
);
}