Code cleanup

This commit is contained in:
Yannick Mauray 2022-01-04 01:34:07 +01:00
parent 0837bf9d80
commit 684a939cf7
No known key found for this signature in database
GPG Key ID: 67C4AAC5E99CB909
5 changed files with 3 additions and 8 deletions

View File

@ -2,7 +2,6 @@ import 'dart:io';
import 'package:flutter/material.dart';
import 'package:package_info_plus/package_info_plus.dart';
import 'package:provider/provider.dart';
import 'package:quickgui/src/globals.dart';
import 'package:tuple/tuple.dart';
import 'package:window_size/window_size.dart';

View File

@ -1,4 +1,3 @@
import 'dart:ffi';
import 'dart:io';
import 'package:flutter/material.dart';

View File

@ -325,16 +325,16 @@ class _ManagerState extends State<Manager> with PreferencesMixin {
'configuration, or delete the whole VM?'),
actions: [
TextButton(
child: Text('Cancel'),
child: const Text('Cancel'),
onPressed: () =>
Navigator.pop(context, 'cancel'),
),
TextButton(
child: Text('Delete disk image'),
child: const Text('Delete disk image'),
onPressed: () => Navigator.pop(context, 'disk'),
),
TextButton(
child: Text('Delete whole VM'),
child: const Text('Delete whole VM'),
onPressed: () => Navigator.pop(context, 'vm'),
) // set up the AlertDialog
],

View File

@ -1,6 +1,4 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_svg/parser.dart';
import 'package:flutter_svg/svg.dart';
import 'package:gettext_i18n/gettext_i18n.dart';

View File

@ -1,6 +1,5 @@
import 'dart:io';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:tuple/tuple.dart';
import 'package:gettext_i18n/gettext_i18n.dart';