Start hooking up proton page
This commit is contained in:
parent
c7d454138e
commit
129e69f2e0
3 changed files with 17 additions and 3 deletions
|
@ -60,6 +60,10 @@ class HomePageState extends State<HomePage> {
|
|||
title: Text("Proton"),
|
||||
leading: Icon(CupertinoIcons.gear),
|
||||
subtitle: Text("Linux Proton"),
|
||||
onTap: () {
|
||||
if (settings.steamcmd_path.isNotEmpty)
|
||||
Navigator.pushNamed(context, "/proton");
|
||||
},
|
||||
), // Not yet implemented
|
||||
ListTile(
|
||||
title: Text("SteamCMD"),
|
||||
|
|
|
@ -4,6 +4,7 @@ import 'package:servermanager/credentials.dart';
|
|||
import 'package:servermanager/game.dart';
|
||||
import 'package:servermanager/home.dart';
|
||||
import 'package:servermanager/mod.dart';
|
||||
import 'package:servermanager/proton.dart';
|
||||
import 'package:servermanager/settings.dart';
|
||||
import 'package:servermanager/steamcmd.dart';
|
||||
|
||||
|
@ -28,6 +29,7 @@ class MyApp extends StatelessWidget {
|
|||
),
|
||||
routes: {
|
||||
"/home": (context) => HomePage(settings: appSettings),
|
||||
"/proton": (context) => Proton(settings: appSettings),
|
||||
"/steamcmd": (context) => SteamCMD(
|
||||
settings: appSettings,
|
||||
),
|
||||
|
|
|
@ -1,17 +1,25 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:servermanager/settings.dart';
|
||||
|
||||
class Proton extends StatefulWidget {
|
||||
Proton({super.key});
|
||||
Settings settings;
|
||||
Proton({super.key, required this.settings});
|
||||
|
||||
@override
|
||||
ProtonState createState() => ProtonState();
|
||||
ProtonState createState() => ProtonState(settings: settings);
|
||||
}
|
||||
|
||||
class ProtonState extends State<Proton> {
|
||||
Settings settings;
|
||||
ProtonState({required this.settings});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(title: Text("Proton Manager")),
|
||||
appBar: AppBar(
|
||||
title: Text("Proton Manager"),
|
||||
backgroundColor: Color.fromARGB(255, 100, 0, 0),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue