mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-16 21:33:41 +00:00
feat: avoid using the depreciated background (#746)
This commit is contained in:
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/material.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:gopeed/api/model/downloader_config.dart';
|
|
||||||
import 'package:path/path.dart' as path;
|
import 'package:path/path.dart' as path;
|
||||||
import 'package:rounded_loading_button_plus/rounded_loading_button.dart';
|
import 'package:rounded_loading_button_plus/rounded_loading_button.dart';
|
||||||
|
|
||||||
@@ -211,7 +210,7 @@ class CreateView extends GetView<CreateController> {
|
|||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Theme.of(context)
|
color: Theme.of(context)
|
||||||
.colorScheme
|
.colorScheme
|
||||||
.background,
|
.surface,
|
||||||
borderRadius:
|
borderRadius:
|
||||||
BorderRadius.circular(
|
BorderRadius.circular(
|
||||||
10.0),
|
10.0),
|
||||||
@@ -690,8 +689,8 @@ class CreateView extends GetView<CreateController> {
|
|||||||
style:
|
style:
|
||||||
ElevatedButton.styleFrom(shape: const StadiumBorder())
|
ElevatedButton.styleFrom(shape: const StadiumBorder())
|
||||||
.copyWith(
|
.copyWith(
|
||||||
backgroundColor: MaterialStateProperty.all(
|
backgroundColor: WidgetStateProperty.all(
|
||||||
Get.theme.colorScheme.background)),
|
Get.theme.colorScheme.surface)),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Get.back();
|
Get.back();
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -335,8 +335,8 @@ class ExtensionView extends GetView<ExtensionController> {
|
|||||||
style:
|
style:
|
||||||
ElevatedButton.styleFrom(shape: const StadiumBorder())
|
ElevatedButton.styleFrom(shape: const StadiumBorder())
|
||||||
.copyWith(
|
.copyWith(
|
||||||
backgroundColor: MaterialStateProperty.all(
|
backgroundColor: WidgetStateProperty.all(
|
||||||
Get.theme.colorScheme.background)),
|
Get.theme.colorScheme.surface)),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Get.back();
|
Get.back();
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ class OpenInNew extends StatelessWidget {
|
|||||||
launchUrl(Uri.parse(url), mode: LaunchMode.externalApplication);
|
launchUrl(Uri.parse(url), mode: LaunchMode.externalApplication);
|
||||||
},
|
},
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
backgroundColor: Get.theme.colorScheme.background,
|
backgroundColor: Get.theme.colorScheme.surface,
|
||||||
),
|
),
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisSize: MainAxisSize
|
mainAxisSize: MainAxisSize
|
||||||
|
|||||||
Reference in new issue
Block a user