Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulGD03 committed Sep 28, 2024
1 parent eb74969 commit 88866be
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 4 deletions.
15 changes: 15 additions & 0 deletions lib/home/home_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,21 @@ class HomeScreenState extends State<HomeScreen> {
),
),
const SizedBox(width: 20),
Expanded(
child: ElevatedButton(
style: theme.elevatedButtonTheme.style,
onPressed: () => context.go('/minitest'),
child: const Column(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(Icons.warning_amber_outlined, size: 52),
Text('Internal', style: TextStyle(fontSize: 28)),
],
),
),
),
const SizedBox(width: 20),
],
),
),
Expand Down
16 changes: 12 additions & 4 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import 'dart:io';
import 'package:flutter/foundation.dart';

import 'package:orion/home/home_screen.dart';
import 'package:orion/settings/minitest.dart';
import 'package:orion/settings/wifi_screen.dart';
import 'package:orion/status/status_screen.dart';
import 'package:orion/files/files_screen.dart';
Expand Down Expand Up @@ -94,6 +95,12 @@ final GoRouter _router = GoRouter(
return const GridFilesScreen();
},
),
GoRoute(
path: 'minitest',
builder: (BuildContext context, GoRouterState state) {
return const MiniTest();
},
),
GoRoute(
path: 'settings',
builder: (BuildContext context, GoRouterState state) {
Expand All @@ -117,10 +124,11 @@ final GoRouter _router = GoRouter(
},
),
GoRoute(
path: 'tools',
builder: (BuildContext context, GoRouterState state) {
return const ToolsScreen();
}),
path: 'tools',
builder: (BuildContext context, GoRouterState state) {
return const ToolsScreen();
},
),
],
),
],
Expand Down
45 changes: 45 additions & 0 deletions lib/settings/minitest.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';

class MiniTest extends StatefulWidget {
const MiniTest({super.key});

@override
MiniTestState createState() => MiniTestState();
}

class MiniTestState extends State<MiniTest> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Prometheus Mini Prototype'),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
SizedBox(width: 40),
Flexible(
child: Text(
'Hello 3DPrintopia!\n\nThis is an experimental machine. It is currently showing off the mechanics of a tilting build plate',
style: TextStyle(fontSize: 32),
textAlign: TextAlign.left,
),
),
SizedBox(width: 40),
],
),
const SizedBox(height: 80),
SvgPicture.asset(
'assets/images/opensource.svg',
),
],
),
),
);
}
}

0 comments on commit 88866be

Please sign in to comment.