fixed PreferredSize constuctor invocations (#128181)

This PR changes the `PreferredSize` constructor parameter positioning to cover the constructor invocations. It helps on auto-complete and suggestion. 

*List which issues are fixed by this PR. You must list at least one issue.*
Fixes #128178
This commit is contained in:
Md. Yeasin Sheikh 2023-06-21 04:21:12 +06:00 committed by GitHub
parent 3b013b7bc2
commit b733901de1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,8 +69,8 @@ class PreferredSize extends StatelessWidget implements PreferredSizeWidget {
/// Creates a widget that has a preferred size that the parent can query. /// Creates a widget that has a preferred size that the parent can query.
const PreferredSize({ const PreferredSize({
super.key, super.key,
required this.child,
required this.preferredSize, required this.preferredSize,
required this.child,
}); });
/// The widget below this widget in the tree. /// The widget below this widget in the tree.