Formatting issues
This commit is contained in:
parent
533742f41f
commit
62d4049710
|
|
@ -157,10 +157,7 @@ class _ManagerState extends State<Manager> with PreferencesMixin {
|
|||
width: 8,
|
||||
),
|
||||
ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
primary: Theme.of(context).canvasColor,
|
||||
onPrimary: buttonColor
|
||||
),
|
||||
style: ElevatedButton.styleFrom(primary: Theme.of(context).canvasColor, onPrimary: buttonColor),
|
||||
onPressed: () async {
|
||||
String? result = await FilePicker.platform.getDirectoryPath();
|
||||
if (result != null) {
|
||||
|
|
|
|||
|
|
@ -2,12 +2,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:gettext_i18n/gettext_i18n.dart';
|
||||
|
||||
class DownloadLabel extends StatelessWidget {
|
||||
const DownloadLabel(
|
||||
{Key? key,
|
||||
required this.downloadFinished,
|
||||
required this.data,
|
||||
required this.downloader})
|
||||
: super(key: key);
|
||||
const DownloadLabel({Key? key, required this.downloadFinished, required this.data, required this.downloader}) : super(key: key);
|
||||
|
||||
final bool downloadFinished;
|
||||
final double? data;
|
||||
|
|
|
|||
|
|
@ -38,15 +38,12 @@ class _HomePageButtonGroupState extends State<HomePageButtonGroup> {
|
|||
text: _selectedOperatingSystem?.name ?? context.t('Select...'),
|
||||
onPressed: () {
|
||||
Navigator.of(context)
|
||||
.push<OperatingSystem>(MaterialPageRoute(
|
||||
fullscreenDialog: true,
|
||||
builder: (context) => const OperatingSystemSelection()))
|
||||
.push<OperatingSystem>(MaterialPageRoute(fullscreenDialog: true, builder: (context) => const OperatingSystemSelection()))
|
||||
.then((selection) {
|
||||
if (selection != null) {
|
||||
setState(() {
|
||||
_selectedOperatingSystem = selection;
|
||||
if (selection.versions.length == 1 &&
|
||||
selection.versions.first.options.length == 1) {
|
||||
if (selection.versions.length == 1 && selection.versions.first.options.length == 1) {
|
||||
_selectedVersion = selection.versions.first;
|
||||
_selectedOption = selection.versions.first.options.first;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue