Questions tagged [materialapp]

7 questions
1
vote
0 answers

MaterialApp RangeError into buildScope Exception

I recently upgraded to Flutter to 3.13 from 3.3 and am now receiving these Exceptions back to back upon hot reloads. I have included both exceptions as they may be linked and am uncertain if they are seperate problems. How can I find the source of…
Josh Kahane
  • 16,765
  • 45
  • 140
  • 253
1
vote
1 answer

MaterialApp.router is not getting rebuilt when using Riverpod StateNotifier to change theme in Flutter, what am I missing?

The MaterialApp.Router widget is supposed to rebuild whenever the theme is changed but it is not. When I do a manual hot reload after tapping a color the theme changes. Any ideas? I'm using the following package versions: dependencies: go_router:…
1
vote
1 answer

"has Size" Error when the textfield is focused

I am having a fixed AppBar() and BottomNavigationBar() and only changing the body for whole Application. To achieve this I have used the builder: property in the MaterialApp() Widget. Now when I tap on the TextField it throws the hasSize error. when…
1
vote
0 answers

Flutter CustomPainter paints on animations

I have an extended CustomPainter class inside a MaterialApp widget tree. Unfortunately, the paint method gets invoked multiple times during the intrinsic Material design animations (for instance when hovering over a BottomNavigationBarItem or when…
user2428094
  • 1,643
  • 2
  • 10
  • 6
0
votes
1 answer

Flutter Error - Dialog Not Displayed Due to Missing MaterialApp Ancestor

I'm encountering an error related to the absence of a MaterialApp ancestor in my Flutter application. My app's structure includes a MultiProvider and a ModularApp setup, but I'm still receiving an error about missing MaterialApp. Here's a simplified…
0
votes
1 answer

trigger rebuild using MaterialApp builder?

I have a MaterialApp with a home or initialRoute (tried it both ways) as well as a builder: MaterialApp( key: appKey, debugShowCheckedModeBanner: false, theme: CustomTheme.lightTheme, darkTheme: CustomTheme.lightTheme, navigatorKey:…
MetaStack
  • 3,266
  • 4
  • 30
  • 67
0
votes
1 answer

Flutter desing: CupertinoApp and MaterialApp in the same project

Is it a good practice desing an App in Flutter (for IOS and Android) to use CupertinoApp and MaterialApp in the same project? Apparently it works as expected in the simulators (Xcode and AndroidStudio simulator), but i would like to know if it will…
xpe
  • 19
  • 5