Skip to content

Instantly share code, notes, and snippets.

View Kounex's full-sized avatar

René Schramowski Kounex

View GitHub Profile
@Kounex
Kounex / main.dart
Last active May 4, 2024 04:53
Flutter Theming: InheritedWidget with ValueNotifier
import 'package:flutter/material.dart';
void main() {
runApp(
SettingsStore(
child: App(),
),
);
}
import 'package:firedart/firedart.dart';
import 'package:flutter/material.dart';
import 'package:hive/hive.dart';
import 'package:path_provider/path_provider.dart';
/// Using this enum to keep track of our [Hive] boxes and have a unified way
/// to use names used for [Hive.openBox(...)] and the [typeId] as used by the
/// adapters for [Hive]
enum HiveBox {
token;