Describe the bug
When adding a CommandBar to a PageHeader using the commandBar property, the layout seems to screw up and Flutter starts spamming errors.
To Reproduce
Minimal repo:
import 'package:fluent_ui/fluent_ui.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return FluentApp(
title: 'Flutter Demo',
home: ScaffoldPage(
header: Text('Meh'),
content: PageHeader(
title: Text('My Title'),
// will crash:
commandBar: CommandBar(
primaryItems: [CommandBarButton(onPressed: () {}, label: Text('my label'))],
),
// works fine:
// commandBar: Row(
// children: [
// IconButton(icon: const Icon(FluentIcons.globe, size: 16), onPressed: () {})
// ],
// ),
),
),
);
}
}
Expected behavior
CommandBar should work fine inside a PageHeader.
Describe the bug
When adding a CommandBar to a PageHeader using the
commandBarproperty, the layout seems to screw up and Flutter starts spamming errors.To Reproduce
Minimal repo:
Expected behavior
CommandBar should work fine inside a PageHeader.