Saving theme in flutter with Hive
so i tried changing theme with provider and heres my main.dart import 'package:flutter/material.dart'; import 'package:hive_flutter/hive_flutter.dart'; import 'package:provider/provider.dart'; import 'package:themetestnew/homepage.dart'; import 'package:themetestnew/theme/theme_provider.dart'; void main() async { await Hive.initFlutter(); await Hive.openBox('myBox'); runApp( ChangeNotifierProvider( create: (context) => ThemeProviderNew(), child: MyApp(), ), ); }…