Skip to content

Commit d541008

Browse files
committed
First working implementation
0 parents  commit d541008

28 files changed

+2074
-0
lines changed

.gitignore

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
.vscode/
12+
13+
# IntelliJ related
14+
*.iml
15+
*.ipr
16+
*.iws
17+
.idea/
18+
19+
# The .vscode folder contains launch configuration and tasks you configure in
20+
# VS Code which you may wish to be included in version control, so this line
21+
# is commented out by default.
22+
#.vscode/
23+
24+
# Flutter/Dart/Pub related
25+
**/doc/api/
26+
**/ios/Flutter/.last_build_id
27+
.dart_tool/
28+
.flutter-plugins
29+
.flutter-plugins-dependencies
30+
.packages
31+
.pub-cache/
32+
.pub/
33+
/build/
34+
35+
# Web related
36+
lib/generated_plugin_registrant.dart
37+
38+
# Symbolication related
39+
app.*.symbols
40+
41+
# Obfuscation related
42+
app.*.map.json
43+
44+
# Android Studio will place build artifacts here
45+
/android/app/debug
46+
/android/app/profile
47+
/android/app/release

.metadata

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: 7e9793dee1b85a243edd0e06cb1658e98b077561
8+
channel: stable
9+
10+
project_type: app

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# simple_led
2+
3+
Simple [WLED](https://github.com/Aircoookie/WLED) manager for Windows.
4+
5+
## Motivation
6+
7+
WLED's web panel is great but it has some problems with WebSocket; so front-end loses it's connection to back-end so often and it makes device unusable sometimes. Beside this connection problems JSON interface is always usable somehow. **Simple_led** uses this JSON interface to manage device with minimal config.

analysis_options.yaml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This file configures the analyzer, which statically analyzes Dart code to
2+
# check for errors, warnings, and lints.
3+
#
4+
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5+
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6+
# invoked from the command line by running `flutter analyze`.
7+
8+
# The following line activates a set of recommended lints for Flutter apps,
9+
# packages, and plugins designed to encourage good coding practices.
10+
include: package:flutter_lints/flutter.yaml
11+
12+
linter:
13+
# The lint rules applied to this project can be customized in the
14+
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15+
# included above or to enable additional rules. A list of all available lints
16+
# and their documentation is published at
17+
# https://dart-lang.github.io/linter/lints/index.html.
18+
#
19+
# Instead of disabling a lint rule for the entire project in the
20+
# section below, it can also be suppressed for a single line of code
21+
# or a specific dart file by using the `// ignore: name_of_lint` and
22+
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
23+
# producing the lint.
24+
rules:
25+
# avoid_print: false # Uncomment to disable the `avoid_print` rule
26+
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27+
28+
# Additional information about this file can be found at
29+
# https://dart.dev/guides/language/analysis-options

lib/main.dart

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import 'package:bitsdojo_window/bitsdojo_window.dart';
2+
import 'package:flutter/material.dart';
3+
4+
import 'pages/main_page.dart';
5+
import 'pages/settings_page.dart';
6+
7+
void main() {
8+
runApp(const MyApp());
9+
10+
doWhenWindowReady(() {
11+
const initialSize = Size(300, 670);
12+
appWindow.minSize = initialSize;
13+
appWindow.size = initialSize;
14+
appWindow.alignment = Alignment.center;
15+
appWindow.title = "SimpleLED Controller";
16+
appWindow.maxSize = initialSize;
17+
appWindow.show();
18+
});
19+
}
20+
21+
class MyApp extends StatelessWidget {
22+
const MyApp({Key? key}) : super(key: key);
23+
24+
@override
25+
Widget build(BuildContext context) {
26+
return MaterialApp(
27+
debugShowCheckedModeBanner: false,
28+
initialRoute: '/',
29+
routes: {
30+
'/': (context) => const MainPage(),
31+
'/settings': (context) => const SettingsPage(),
32+
},
33+
);
34+
}
35+
}

0 commit comments

Comments
 (0)