skip to Main Content

Flutter use SliverAppBar with Hero widget

I'm having trouble using the Hero widget with SliverAppBar. class MyHomePage extends StatelessWidget { const MyHomePage({super.key}); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text('Flutter Demo Home Page'), ), body: Center( child: Row( children: [Colors.red, Colors.blue, Colors.yellow]…

VIEW QUESTION

How to make the button turn green when upon clicking it – Flutter

the data is display all using the streamBuilder and I'm using the return ListView.Builder by adding the onTap button child: StreamBuilder<QuerySnapshot>( stream: FirebaseFirestore.instance .collection('prayers') .orderBy('prayerId') .snapshots(), builder: (context, snapshot) { if (!snapshot.hasData) { return const CircularProgressIndicator(); } itemCount: documents.length, itemBuilder:…

VIEW QUESTION
Back To Top
Search