Skip to content

Instantly share code, notes, and snippets.

View vektemok's full-sized avatar

vektemok vektemok

  • Bishkek/Kyrgyzstan
  • 17:51 (UTC -12:00)
View GitHub Profile
@vektemok
vektemok / prefs
Created January 10, 2026 04:39
Prefs
import 'package:shared_preferences/shared_preferences.dart';
/// {@template preferences_dao}
/// Class that provides seamless access to the shared preferences.
/// {@endtemplate}
abstract base class PreferencesDao {
final SharedPreferences _sharedPreferences;
/// {@macro preferences_dao}
const PreferencesDao({required SharedPreferences sharedPreferences}) : _sharedPreferences = sharedPreferences;
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
/// {@template app_theme}
/// AppTheme.
/// {@endtemplate}
final class AppTheme with DiagnosticableTreeMixin {
/// {@macro app_theme}
const AppTheme({required this.themeData});