mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Update package versions and refactor accordingly
This commit is contained in:
parent
a415a2cd99
commit
65cabc2fa9
12 changed files with 205 additions and 144 deletions
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
import 'package:InvenTree/app_settings.dart';
|
||||
import 'package:InvenTree/widget/snacks.dart';
|
||||
import 'package:audioplayers/audio_cache.dart';
|
||||
import 'package:audioplayers/audioplayers.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||
|
|
@ -64,7 +64,7 @@ Future<void> showInfoDialog(BuildContext context, String title, String descripti
|
|||
|
||||
showDialog(
|
||||
context: context,
|
||||
child: SimpleDialog(
|
||||
builder: (BuildContext context) => SimpleDialog(
|
||||
title: ListTile(
|
||||
title: Text(info),
|
||||
leading: FaIcon(icon),
|
||||
|
|
@ -119,7 +119,7 @@ Future<void> showServerError(String title, String description) async {
|
|||
final bool tones = await InvenTreeSettingsManager().getValue("serverSounds", true) as bool;
|
||||
|
||||
if (tones) {
|
||||
AudioCache player = AudioCache();
|
||||
final player = AudioCache();
|
||||
player.play("sounds/server_error.mp3");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue