partial implementation of riverpod for sub-page management in the conversations list

This commit is contained in:
Joshua
2024-07-06 16:06:46 -06:00
parent 1d5bf55eb9
commit a9d4f619e3
2 changed files with 36 additions and 68 deletions
+1 -2
View File
@@ -6,7 +6,6 @@ import 'package:provider/provider.dart';
import 'package:app/theme.dart';
// my_state.dart (Provider for selected index)
final _selectedIndex = ValueNotifier<int>(0);
class MyState with ChangeNotifier {
@@ -54,7 +53,7 @@ class MyApp extends ConsumerWidget {
// This list holds the pages to navigate between
final List<Widget> _pages = [
// Replace with the widget for your first page (e.g., HomeScreen())
const Center(child: ConversationsListWidget()),
Center(child: ConversationsListWidget()),
// Replace with the widget for your second page (e.g., SettingsPage())
const Center(child: SettingsWidget()),
];