Skip to content

Commit adec224

Browse files
committed
Slight UI changeed
1 parent 188aab4 commit adec224

12 files changed

Lines changed: 875 additions & 1244 deletions

README.md

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
# qs_ds_app
1+
# Quick - Down - Shifter APP
22

33
QS DS Application
4-
5-
## Getting Started
6-
7-
This project is a starting point for a Flutter application.
8-
9-
A few resources to get you started if this is your first Flutter project:
10-
11-
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12-
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
13-
14-
For help getting started with Flutter development, view the
15-
[online documentation](https://docs.flutter.dev/), which offers tutorials,
16-
samples, guidance on mobile development, and a full API reference.

lib/main.dart

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import 'package:flutter/material.dart';
22
import 'package:qs_ds_app/screens/port_screen.dart';
3-
import 'package:qs_ds_app/screens/settings_screen.dart';
43
import 'package:window_size/window_size.dart';
54
import 'dart:io' show Platform;
65

76
void main() {
87
WidgetsFlutterBinding.ensureInitialized();
98
if (Platform.isWindows || Platform.isLinux || Platform.isMacOS) {
109
setWindowTitle('Quick - Down - Shifter APP');
11-
setWindowMinSize(const Size(1050, 400));
10+
// setWindowMinSize(const Size(1050, 400));
1211
// setWindowMaxSize(const Size(1200, 730));
1312
}
1413

@@ -27,17 +26,14 @@ class _MyAppState extends State<MyApp> {
2726
Widget build(BuildContext context) {
2827
return MaterialApp(
2928
theme: ThemeData(
30-
appBarTheme: AppBarTheme(
29+
appBarTheme: const AppBarTheme(
3130
backgroundColor: Colors.transparent,
3231
elevation: 1,
3332
shadowColor: Colors.black,
3433
toolbarHeight: 0,
35-
// surfaceTintColor: Colors.red,
3634
),
3735
),
38-
// color: Colors.green,
39-
home: PortScreen(),
40-
// home: SettingsScreen(),
36+
home: const PortScreen(),
4137
);
4238
}
4339
}

lib/model/serial_testing.dart

Lines changed: 0 additions & 61 deletions
This file was deleted.

lib/model/setting.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class Setting {
44
late final String label;
55

66
Setting(this.type, this.value) {
7-
this.label = generateLabel(this.type);
7+
label = generateLabel(type);
88
}
99
}
1010

lib/model/settings_repository.dart

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -180,34 +180,39 @@ class SettingsRepository {
180180
}
181181
}
182182

183-
String generateSaveSettings(){
183+
String generateSaveSettings() {
184184
String result = 'S,';
185-
for(int i = 4; i < settingsList.length; i++){
185+
for (int i = 4; i < settingsList.length; i++) {
186186
result += '${settingsList[i].value},';
187187
}
188-
result = result.substring(0,result.length-1);
188+
result = result.substring(0, result.length - 1);
189189
return result;
190190
}
191191

192-
List<Tab> getTabs(){
192+
List<Tab> getTabs() {
193193
List<Tab> tabs = <Tab>[];
194194
// tabs.add(Tab(text: 'Quickshifter',));
195195
// tabs.add(Tab(text: 'Downshifter',));
196196
// return tabs;
197-
if(qsType.value != '0' || dsType.value !='0'){
198-
tabs.add(Tab(text: 'General',));
199-
if(qsType.value != '0'){
200-
tabs.add(Tab(text: 'Quickshifter',));
197+
if (qsType.value != '0' || dsType.value != '0') {
198+
tabs.add(const Tab(
199+
text: 'General',
200+
));
201+
if (qsType.value != '0') {
202+
tabs.add(const Tab(
203+
text: 'Quickshifter',
204+
));
201205
}
202-
if(dsType.value != '0'){
203-
tabs.add(Tab(text: 'Downshifter',));
206+
if (dsType.value != '0') {
207+
tabs.add(const Tab(
208+
text: 'Downshifter',
209+
));
204210
}
205-
} else{
206-
tabs.add(Tab(text: 'READ DATA FIRST',));
211+
} else {
212+
tabs.add(const Tab(
213+
text: 'READ DATA FIRST',
214+
));
207215
}
208216
return tabs;
209217
}
210-
211-
212-
213218
}

0 commit comments

Comments
 (0)