Use as a template for any singleton classes you require. Instantiate with...
Singleton object = Singleton.Instance;
further information...
| import 'package:flutter/material.dart'; | |
| // https://api.flutter.dev/flutter/material/DefaultTabController-class.html | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({Key? key}) : super(key: key); |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({Key? key}) : super(key: key); | |
| static const String _title = 'Stateful Generic Example'; |
| # MACROPAD Hotkeys example: Text Injection | |
| # https://learn.adafruit.com/macropad-hotkeys | |
| from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values | |
| # https://docs.circuitpython.org/projects/hid/en/latest/_modules/adafruit_hid/keycode.html | |
| app = { | |
| 'name' : 'Injection', # Application name | |
| 'macros' : [ # List of button macros... | |
| # COLOR LABEL KEY SEQUENCE |
| import 'dart:math'; | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(const MyApp()); | |
| class MyApp extends StatelessWidget { | |
| const MyApp({Key? key}) : super(key: key); | |
| @override |
| import 'package:flutter/material.dart'; | |
| // based on: https://stackoverflow.com/questions/56005180/how-to-show-error-icon-inside-textfield-in-flutter | |
| // based on: https://codewithandrea.com/articles/flutter-text-field-form-validation/ | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { |
| #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
| #Warn ; Enable warnings to assist with detecting common errors. | |
| SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
| SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
| SetNumLockState, AlwaysOn | |
| SetCapsLockState, AlwaysOff | |
| SetScrollLockState, AlwaysOff | |
| Return |
| using System.Collections.Generic; | |
| using System.Threading.Tasks; | |
| namespace Execution | |
| { | |
| public class ParallelMaker | |
| { | |
| public List<IThingy> CreateInParallel() | |
| { | |
| var thingies = new List<IThingy>(); |
Use as a template for any singleton classes you require. Instantiate with...
Singleton object = Singleton.Instance;
further information...