Error: Could not find the correct Provider<ThemeProvider> above this MyApp Widget

Issue I’ve got a problem, my code doesn’t work. I’ve looked through some of the already existing posts, but nothing has worked. my main.dart looks like this import ‘package:flutter/material.dart’; import ‘package:provider/provider.dart’; import ‘package:study_sync/auth/login_or_register.dart’; import ‘package:study_sync/theme/theme_provider.dart’; void main() { runApp(const MyApp());

Continue reading

Provider notify other listeners from a ChangeNotifier

Issue I have the following setup: App with multiple pages: VoltagesPage & TemperaturesPage I will receive some data over bluetooth serial like so: bluetooth_data_provider.dart import ‘dart:convert’; import ‘dart:typed_data’; import ‘package:flutter/widgets.dart’; import ‘package:flutter_bluetooth_serial/flutter_bluetooth_serial.dart’; class BluetoothDataProvider with ChangeNotifier { String _data =

Continue reading