mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-04 20:30:35 +00:00
Load services from api
This commit is contained in:
parent
3359acbf27
commit
393528e4c0
11 changed files with 495 additions and 394 deletions
|
@ -8,7 +8,8 @@ void showSnacbkar({
|
|||
required BuildContext context,
|
||||
required AppConfigProvider appConfigProvider,
|
||||
required String label,
|
||||
required Color color
|
||||
required Color color,
|
||||
Color? labelColor
|
||||
}) async {
|
||||
if (appConfigProvider.showingSnackbar == true) {
|
||||
ScaffoldMessenger.of(context).clearSnackBars();
|
||||
|
@ -17,7 +18,12 @@ void showSnacbkar({
|
|||
appConfigProvider.setShowingSnackbar(true);
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(label),
|
||||
content: Text(
|
||||
label,
|
||||
style: TextStyle(
|
||||
color: labelColor ?? Colors.white
|
||||
),
|
||||
),
|
||||
backgroundColor: color,
|
||||
)
|
||||
).closed.then((value) => appConfigProvider.setShowingSnackbar(false));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue