Skip to content

Commit

Permalink
fix: remove deprecated members (for Flutter 3.22) (#1883)
Browse files Browse the repository at this point in the history
  • Loading branch information
josxha authored May 15, 2024
1 parent 19704a8 commit 4f6b524
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion example/lib/pages/debouncing_tile_update_transformer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class _DebouncingTileUpdateTransformerPageState
right: 16,
child: DecoratedBox(
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.background,
color: Theme.of(context).colorScheme.surface,
borderRadius: BorderRadius.circular(32),
),
child: Padding(
Expand Down
4 changes: 2 additions & 2 deletions example/lib/pages/polygon_perf_stress.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class _PolygonPerfStressPageState extends State<PolygonPerfStressPage> {
UnconstrainedBox(
child: Container(
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.background,
color: Theme.of(context).colorScheme.surface,
borderRadius: BorderRadius.circular(32),
),
padding: const EdgeInsets.symmetric(
Expand Down Expand Up @@ -125,7 +125,7 @@ class _PolygonPerfStressPageState extends State<PolygonPerfStressPage> {
UnconstrainedBox(
child: Container(
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.background,
color: Theme.of(context).colorScheme.surface,
borderRadius: BorderRadius.circular(32),
),
padding: const EdgeInsets.symmetric(
Expand Down
2 changes: 1 addition & 1 deletion example/lib/widgets/drawer/floating_menu_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class FloatingMenuButton extends StatelessWidget {
child: SafeArea(
child: Container(
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.background,
color: Theme.of(context).colorScheme.surface,
borderRadius: BorderRadius.circular(999),
),
padding: const EdgeInsets.all(8),
Expand Down
2 changes: 1 addition & 1 deletion example/lib/widgets/number_of_items_slider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class NumberOfItemsSlider extends StatelessWidget {
Widget build(BuildContext context) {
return DecoratedBox(
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.background,
color: Theme.of(context).colorScheme.surface,
borderRadius: BorderRadius.circular(32),
),
child: Padding(
Expand Down
2 changes: 1 addition & 1 deletion example/lib/widgets/simplification_tolerance_slider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class SimplificationToleranceSlider extends StatelessWidget {
Widget build(BuildContext context) {
return DecoratedBox(
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.background,
color: Theme.of(context).colorScheme.surface,
borderRadius: BorderRadius.circular(32),
),
child: Padding(
Expand Down
2 changes: 1 addition & 1 deletion lib/src/layer/attribution_layer/rich/widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ class _RichAttributionWidgetState extends State<RichAttributionWidget> {
child: DecoratedBox(
decoration: BoxDecoration(
color: widget.popupBackgroundColor ??
Theme.of(context).colorScheme.background,
Theme.of(context).colorScheme.surface,
border: Border.all(width: 0, style: BorderStyle.none),
borderRadius: widget.popupBorderRadius ??
BorderRadius.only(
Expand Down
2 changes: 1 addition & 1 deletion lib/src/layer/attribution_layer/simple.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class SimpleAttributionWidget extends StatelessWidget {
Widget build(BuildContext context) => Align(
alignment: alignment,
child: ColoredBox(
color: backgroundColor ?? Theme.of(context).colorScheme.background,
color: backgroundColor ?? Theme.of(context).colorScheme.surface,
child: GestureDetector(
onTap: onTap,
child: Padding(
Expand Down

0 comments on commit 4f6b524

Please sign in to comment.