Completed basic functionality

This commit is contained in:
MaticIvesic committed 2026-02-02 20:52:17 +01:00
1 parent 922f26310a
commit 78f2dfa742
55 files changed
+1399 -101

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
class ServerCommand {
String name;
String ip;
String username;
String password;
String command;
ServerCommand({
required this.name,
required this.ip,
required this.username,
required this.password,
required this.command,
});
// Convert Object to Map
Map<String, dynamic> toMap() {
return {
'name': name,
'ip': ip,
'username': username,
'password': password,
'command': command,
};
}
// Create Object from Map
factory ServerCommand.fromMap(Map<String, dynamic> map) {
return ServerCommand(
name: map['name'],
ip: map['ip'],
username: map['username'],
password: map['password'],
command: map['command'],
);
}
}
+32
View File
@@ -0,0 +1,32 @@
import 'package:flutter/material.dart';
// 2. THE MAIN THEME DEFINITIONS
class MyThemes {
static final darkTheme = ThemeData(
useMaterial3: true,
brightness: Brightness.dark,
colorScheme: const ColorScheme.dark(
primary: Color.fromARGB(255, 30, 90, 173),
onPrimary: Color.fromARGB(255, 255, 255, 255),
surface: Color.fromARGB(255, 24, 24, 24), // <--- Use this for Card BG
onSurface: Color.fromARGB(255, 255, 255, 255), // Card Text
onSurfaceVariant: Color.fromARGB(255, 155, 155, 155),
primaryContainer: Color.fromARGB(255, 30, 30, 30),
error: Color.fromARGB(255, 255, 0, 0),
),
);
static final lightTheme = ThemeData(
useMaterial3: true,
brightness: Brightness.light,
colorScheme: const ColorScheme.light(
primary: Color.fromARGB(255, 30, 90, 173),
onPrimary: Color.fromARGB(255, 15, 15, 15),
surface: Color.fromARGB(255, 245, 245, 245), // <--- Use this for Card BG
onSurface: Color.fromARGB(255, 19, 19, 19), // Card Text
onSurfaceVariant: Color.fromARGB(255, 61, 61, 61),
primaryContainer: Color.fromARGB(255, 236, 236, 236),
error: Color.fromARGB(255, 255, 0, 0),
),
);
}