-
-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ProgressBar
throws error when the parent is too small
#969
Comments
Sorry, but I can not reproduce this issue on the example app. Can you try it there? Is there any reproducible snippet I can try? Are you trying on Flutter Web? |
It seems like i missidentified the situation where the bug happens a bit. This minimal app runs fine on fluent_ui 4.7.6 but it throws the above mentioned error when using fluent_ui 4.7.7 or later. import 'package:fluent_ui/fluent_ui.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const FluentApp(
home: MyHomePage(),
);
}
}
class MyHomePage extends StatelessWidget {
const MyHomePage({super.key});
@override
Widget build(BuildContext context) {
return const NavigationView(
content: Column(
children: [
SizedBox(
height: 2,
child: ProgressBar(),
),
],
),
);
}
} If value in ProgressBar is specified or not seems to make no difference, contrary to my initial comment. I hope this helps:) |
ProgressBar
throws error when the parent is too small
When the ProgressBarWidget is used, bot no value is specified (so the loading animation is shown), i get the following error with fluent_ui 4.7.7. Because of the error the progress bar is not displayed. Using fluent 4.7.6 or specifying a value in 4.7.7 seems to work fine with no error thrown.
Dart: 3.1.5
Flutter: 3.13.9
The text was updated successfully, but these errors were encountered: