Flutter – setState not working as intended in a ConsumerStatefulWidget (Riverpod)
I have a custom appbar class where I pass the title as its constructor. class MyAppBar extends StatelessWidget implements PreferredSizeWidget { final String? title; @override Size get preferredSize => Size.fromHeight(AppBar().preferredSize.height); const MyAppBar({super.key, this.title}); @override Widget build(BuildContext context) { return AppBar(title:…