Closed neelansh-creatorstack closed 2 years ago
Hi @neelansh-creatorstack, Thanks for filing the issue.
There is a similar issue describing this case #90550, Please follow up there for further updates, Closing this issue as a duplicate. If you disagree feel free to write in the comments and I will reopen it.
Thank you.
Yes @maheshmnj , this is the same problem of having nested Material App. Once I removed the nested Material App and passed the other Material App in the builder function of the first one, there are no more rebuilds happening. But if passed in the home parameter, the above issue happens.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v
and a minimal reproduction of the issue.
Steps to Reproduce
I was searching about the widget rebuild problem and stumbled upon this https://github.com/flutter/flutter/issues/37878 This was working fine, but after updating the flutter version to
2.8.0
On2.3.1
everything is working as expected. I'm facing a similar issue. This is precisely happening when I'm having two MaterialApps, and my routes are defined in theflutter run
on the code sampleListView.builder
with items asTextField
s with print() statement in theitemBuillder
.Expected results:
Actual results:
Code sample
```dart import 'package:cloudinary_media_sample/home_entry_point_widget2.dart'; import 'package:flutter/material.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { // This widget is the root of your application. // GlobalKey key = GlobalKey(); @override Widget build(BuildContext context) { return MaterialApp( home: MyHomePage( title: 'Title', ), ); } } class MyHomePage extends StatefulWidget { MyHomePage({Key? key, required this.title}) : super(key: key); final String title; @override _MyHomePageState createState() => _MyHomePageState(); } class _MyHomePageState extends State