feat: avoid using the depreciated background (#746)

This commit is contained in:
Aman Raj Singh Mourya authored and GitHub committed 2024-09-18 14:39:01 +08:00
1 parent 3308d966f0
commit bdda550b2c
3 files changed
+6 -7

No files matched your search

@@ -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';
@@ -211,7 +210,7 @@ class CreateView extends GetView<CreateController> {
decoration: BoxDecoration(
color: Theme.of(context)
.colorScheme
.background,
.surface,
borderRadius:
BorderRadius.circular(
10.0),
@@ -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();
},
@@ -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();
},
+1 -1
View File
@@ -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