Skip to content

Commit

Permalink
refactor: Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
witwash committed Aug 12, 2024
1 parent 9b84a95 commit dd5c40a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 22 deletions.
1 change: 1 addition & 0 deletions remote_logger/lib/src/remote_logger.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class RemoteLogger {
final GetHeaders _getHeaders;
Duration _currentTimeout = _initialTimeout;

// ignore: dispose-class-fields, we don't want to dispose the client if it was provided by the user
final Client? _client;
Client? _internalClient;

Expand Down
21 changes: 9 additions & 12 deletions storybook/lib/stories/inline_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,16 @@ class _InlineDialogStoryState extends State<InlineDialogStory> {
alignment: position,
child: OptimusButton(
key: _anchor,
onPressed: () => {
DialogWrapper.of(context)?.showInline(
anchorKey: _anchor,
size: OptimusDialogSize.regular,
content: const Padding(
padding: EdgeInsets.all(8.0),
child: _InlineContentExample(),
),
actions: hasActions
? [const OptimusDialogAction(title: Text('OK'))]
: [],
onPressed: () => DialogWrapper.of(context)?.showInline(
anchorKey: _anchor,
size: OptimusDialogSize.regular,
content: const Padding(
padding: EdgeInsets.all(8.0),
child: _InlineContentExample(),
),
},
actions:
hasActions ? [const OptimusDialogAction(title: Text('OK'))] : [],
),
child: const Text('show'),
),
);
Expand Down
18 changes: 8 additions & 10 deletions storybook/lib/stories/nonmodal_wrapper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,14 @@ class NonModalDialogStory extends StatelessWidget {
final title = k.text(label: 'Title', initial: 'Dialog title');

return OptimusButton(
onPressed: () => {
DialogWrapper.of(context)?.show(
title: Text(title),
content: const Text('Content'),
isDismissible: isDismissible,
actions:
hasActions ? [const OptimusDialogAction(title: Text('OK'))] : [],
size: OptimusDialogSize.small,
),
},
onPressed: () => DialogWrapper.of(context)?.show(
title: Text(title),
content: const Text('Content'),
isDismissible: isDismissible,
actions:
hasActions ? [const OptimusDialogAction(title: Text('OK'))] : [],
size: OptimusDialogSize.small,
),
child: const Text('show'),
);
}
Expand Down

0 comments on commit dd5c40a

Please sign in to comment.