Skip to content

Commit bfc3b6c

Browse files
authored
[material_ui] Remove unused maintainState constructor parameter in scaffold_test.dart (#12754)
Fixes flutter/flutter#192293 Dart SDK into Flutter AutoRoller is currently failing due to dart analyze failure on material_ui: ``` warning - test/scaffold_test.dart:3880:49 - A value for optional parameter 'maintainState' isn't ever given. Try removing the unused parameter. - unused_element_parameter ``` ## Pre-Review Checklist **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
1 parent ca4072e commit bfc3b6c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/material_ui/test/scaffold_test.dart‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3877,7 +3877,7 @@ class _GeometryCachePainter extends CustomPainter {
38773877
}
38783878

38793879
class _CustomPageRoute<T> extends PageRoute<T> {
3880-
_CustomPageRoute({required this.builder, this.maintainState = true, super.fullscreenDialog});
3880+
_CustomPageRoute({required this.builder, super.fullscreenDialog});
38813881

38823882
final WidgetBuilder builder;
38833883

@@ -3891,7 +3891,7 @@ class _CustomPageRoute<T> extends PageRoute<T> {
38913891
String? get barrierLabel => null;
38923892

38933893
@override
3894-
final bool maintainState;
3894+
final bool maintainState = true;
38953895

38963896
@override
38973897
Widget buildPage(

0 commit comments

Comments
 (0)