Skip to content

Commit

Permalink
feat: avoid using the depreciated background (#746)
Browse files Browse the repository at this point in the history
  • Loading branch information
AmanRajSinghMourya authored Sep 18, 2024
1 parent 3308d96 commit bdda550
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions ui/flutter/lib/app/modules/create/views/create_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import 'package:file_picker/file_picker.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:get/get.dart';
import 'package:gopeed/api/model/downloader_config.dart';
import 'package:path/path.dart' as path;
import 'package:rounded_loading_button_plus/rounded_loading_button.dart';

Expand Down Expand Up @@ -211,7 +210,7 @@ class CreateView extends GetView<CreateController> {
decoration: BoxDecoration(
color: Theme.of(context)
.colorScheme
.background,
.surface,
borderRadius:
BorderRadius.circular(
10.0),
Expand Down Expand Up @@ -690,8 +689,8 @@ class CreateView extends GetView<CreateController> {
style:
ElevatedButton.styleFrom(shape: const StadiumBorder())
.copyWith(
backgroundColor: MaterialStateProperty.all(
Get.theme.colorScheme.background)),
backgroundColor: WidgetStateProperty.all(
Get.theme.colorScheme.surface)),
onPressed: () {
Get.back();
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ class ExtensionView extends GetView<ExtensionController> {
style:
ElevatedButton.styleFrom(shape: const StadiumBorder())
.copyWith(
backgroundColor: MaterialStateProperty.all(
Get.theme.colorScheme.background)),
backgroundColor: WidgetStateProperty.all(
Get.theme.colorScheme.surface)),
onPressed: () {
Get.back();
},
Expand Down
2 changes: 1 addition & 1 deletion ui/flutter/lib/app/views/open_in_new.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class OpenInNew extends StatelessWidget {
launchUrl(Uri.parse(url), mode: LaunchMode.externalApplication);
},
style: ElevatedButton.styleFrom(
backgroundColor: Get.theme.colorScheme.background,
backgroundColor: Get.theme.colorScheme.surface,
),
child: Row(
mainAxisSize: MainAxisSize
Expand Down

0 comments on commit bdda550

Please sign in to comment.