Skip to content

Commit

Permalink
refactor: move off deprecated api
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatNerdSquared committed Sep 25, 2024
1 parent 0b02c79 commit 814fee7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/widgets/confirmation_modal.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ConfirmationModal extends StatelessWidget {
),
OutlinedButton(
style: const ButtonStyle(
backgroundColor: MaterialStatePropertyAll(Colors.red),
backgroundColor: WidgetStatePropertyAll(Colors.red),
),
onPressed: () => Navigator.pop(context, true),
child: const Text('Delete'),
Expand Down
1 change: 0 additions & 1 deletion lib/widgets/entry_list_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import 'package:super_context_menu/super_context_menu.dart' as scm;
import 'package:super_sliver_list/super_sliver_list.dart';

import '../config.dart';
import '../context_menus.dart';
import '../main.dart';
import 'peregrine_app_bar.dart';
import 'peregrine_entry_box.dart';
Expand Down
7 changes: 3 additions & 4 deletions lib/widgets/peregrine_entry_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -148,20 +148,19 @@ class _PeregrineEntryCardState extends ConsumerState<PeregrineEntryCard> {
.map((tag) => OutlinedButton(
style: const ButtonStyle(
minimumSize:
MaterialStatePropertyAll(
WidgetStatePropertyAll(
Size(32, 32),
),
visualDensity:
VisualDensity.compact,
shape:
MaterialStatePropertyAll(
shape: WidgetStatePropertyAll(
RoundedRectangleBorder(
borderRadius: PretConfig
.thinBorderRadius,
),
),
padding:
MaterialStatePropertyAll(
WidgetStatePropertyAll(
EdgeInsets.all(
//PretConfig.minElementSpacing / 2,
PretConfig
Expand Down

0 comments on commit 814fee7

Please sign in to comment.