diff --git a/analysis_options.yaml b/analysis_options.yaml index b1b582a..577ca50 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -1,2 +1,5 @@ # https://pub.dev/packages/pedantic_mono include: package:pedantic_mono/analysis_options.yaml +analyzer: + exclude: + - '**/generated_plugin_registrant.dart' diff --git a/example/lib/pages/nested_navigator_page.dart b/example/lib/pages/nested_navigator_page.dart index 1845cc9..27ae928 100644 --- a/example/lib/pages/nested_navigator_page.dart +++ b/example/lib/pages/nested_navigator_page.dart @@ -69,9 +69,11 @@ class _RootPage extends StatelessWidget { ElevatedButton( child: const Text('Next Page'), onPressed: () { - Navigator.of(context).push(MaterialPageRoute( - builder: (context) => const _RootPage(), - )); + Navigator.of(context).push( + MaterialPageRoute( + builder: (context) => const _RootPage(), + ), + ); }, ), ], diff --git a/lib/src/alert_dialog/alert_dialog_action.dart b/lib/src/alert_dialog/alert_dialog_action.dart index c43a88f..33f36fd 100644 --- a/lib/src/alert_dialog/alert_dialog_action.dart +++ b/lib/src/alert_dialog/alert_dialog_action.dart @@ -63,29 +63,35 @@ extension AlertDialogActionListEx on List> { List convertToCupertinoDialogActions({ required ActionCallback onPressed, }) => - map((a) => a.convertToCupertinoDialogAction( - onPressed: onPressed, - )).toList(); + map( + (a) => a.convertToCupertinoDialogAction( + onPressed: onPressed, + ), + ).toList(); List convertToMaterialDialogActions({ required ActionCallback onPressed, required Color destructiveColor, required bool fullyCapitalized, }) => - map((a) => a.convertToMaterialDialogAction( - onPressed: onPressed, - destructiveColor: destructiveColor, - fullyCapitalized: fullyCapitalized, - )).toList(); + map( + (a) => a.convertToMaterialDialogAction( + onPressed: onPressed, + destructiveColor: destructiveColor, + fullyCapitalized: fullyCapitalized, + ), + ).toList(); List> convertToSheetActions() => where((a) => a.key != OkCancelResult.cancel) - .map((a) => SheetAction( - key: a.key, - label: a.label, - isDefaultAction: a.isDefaultAction, - isDestructiveAction: a.isDestructiveAction, - )) + .map( + (a) => SheetAction( + key: a.key, + label: a.label, + isDefaultAction: a.isDefaultAction, + isDestructiveAction: a.isDestructiveAction, + ), + ) .toList(); String? findCancelLabel() { diff --git a/lib/src/alert_dialog/show_confirmation_dialog.dart b/lib/src/alert_dialog/show_confirmation_dialog.dart index 5d763ad..b7da549 100644 --- a/lib/src/alert_dialog/show_confirmation_dialog.dart +++ b/lib/src/alert_dialog/show_confirmation_dialog.dart @@ -163,17 +163,19 @@ class _ConfirmationMaterialDialogState controller: _scrollController, shrinkWrap: widget.shrinkWrap, children: widget.actions - .map((action) => RadioListTile( - title: Text(action.label), - value: action.key, - groupValue: _selectedKey, - onChanged: (value) { - setState(() { - _selectedKey = value; - }); - }, - toggleable: true, - )) + .map( + (action) => RadioListTile( + title: Text(action.label), + value: action.key, + groupValue: _selectedKey, + onChanged: (value) { + setState(() { + _selectedKey = value; + }); + }, + toggleable: true, + ), + ) .toList(), ), ), diff --git a/lib/src/modal_action_sheet/cupertino_modal_action_sheet.dart b/lib/src/modal_action_sheet/cupertino_modal_action_sheet.dart index 9c8b6b7..1d3c64a 100644 --- a/lib/src/modal_action_sheet/cupertino_modal_action_sheet.dart +++ b/lib/src/modal_action_sheet/cupertino_modal_action_sheet.dart @@ -53,12 +53,14 @@ class CupertinoModalActionSheet extends StatelessWidget { ), ), actions: actions - .map((a) => CupertinoActionSheetAction( - isDestructiveAction: a.isDestructiveAction, - isDefaultAction: a.isDefaultAction, - onPressed: () => onPressed(a.key), - child: Text(a.label), - )) + .map( + (a) => CupertinoActionSheetAction( + isDestructiveAction: a.isDestructiveAction, + isDefaultAction: a.isDefaultAction, + onPressed: () => onPressed(a.key), + child: Text(a.label), + ), + ) .toList(), ), ),