mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2026-01-20 01:33:58 +00:00
make export settings activity transparent
This commit is contained in:
@@ -10,26 +10,23 @@ class ExportSettingsView extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
_exportSettingsViewModel.init(context);
|
||||
return Material(
|
||||
child: AlertDialog(
|
||||
title: I18nText('exportSettingsView.widgetTitle'),
|
||||
content: I18nText('exportSettingsView.description'),
|
||||
icon: const Icon(Icons.update),
|
||||
actions: <Widget> [
|
||||
CustomMaterialButton(
|
||||
isFilled: false,
|
||||
label: I18nText('exportSettingsView.dismissButton'),
|
||||
onPressed: _exportSettingsViewModel.deny,
|
||||
),
|
||||
CustomMaterialButton(
|
||||
label: I18nText('exportSettingsView.exportButton'),
|
||||
onPressed: () async {
|
||||
await _exportSettingsViewModel.accept();
|
||||
},
|
||||
),
|
||||
],
|
||||
return AlertDialog(
|
||||
title: I18nText('exportSettingsView.widgetTitle'),
|
||||
content: I18nText('exportSettingsView.description'),
|
||||
icon: const Icon(Icons.update),
|
||||
actions: <Widget> [
|
||||
CustomMaterialButton(
|
||||
isFilled: false,
|
||||
label: I18nText('exportSettingsView.dismissButton'),
|
||||
onPressed: _exportSettingsViewModel.deny,
|
||||
),
|
||||
CustomMaterialButton(
|
||||
label: I18nText('exportSettingsView.exportButton'),
|
||||
onPressed: () async {
|
||||
await _exportSettingsViewModel.accept();
|
||||
},
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,19 +15,6 @@ class ExportSettingsViewModel extends BaseViewModel {
|
||||
final _channel = const MethodChannel('app.revanced.manager.flutter/settings');
|
||||
final ManagerAPI _managerAPI = locator<ManagerAPI>();
|
||||
|
||||
void init(BuildContext context) {
|
||||
SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
|
||||
SystemChrome.setSystemUIOverlayStyle(
|
||||
SystemUiOverlayStyle(
|
||||
systemNavigationBarColor: Colors.transparent,
|
||||
systemNavigationBarIconBrightness:
|
||||
DynamicTheme.of(context)!.theme.brightness == Brightness.light
|
||||
? Brightness.dark
|
||||
: Brightness.light,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> accept() async {
|
||||
final externalDir = await getExternalStorageDirectory();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user