mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-04-30 05:54:26 +02:00
fix: migration latest changes to native buttons
Signed-off-by: validcube <pun.butrach@gmail.com>
This commit is contained in:
parent
c23275f2fe
commit
c56c445fb7
@ -322,24 +322,29 @@ class PatcherAPI {
|
|||||||
),
|
),
|
||||||
actions: (status == null)
|
actions: (status == null)
|
||||||
? <Widget>[
|
? <Widget>[
|
||||||
CustomMaterialButton(
|
FilledButton(
|
||||||
label: I18nText('okButton'),
|
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
},
|
},
|
||||||
|
child: I18nText('okButton'),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
: <Widget>[
|
: <Widget>[
|
||||||
CustomMaterialButton(
|
if (!isFixable)
|
||||||
isFilled: !isFixable,
|
FilledButton(
|
||||||
label: I18nText('cancelButton'),
|
onPressed: () {
|
||||||
|
Navigator.pop(context);
|
||||||
|
},
|
||||||
|
child: I18nText('cancelButton'),
|
||||||
|
),
|
||||||
|
TextButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
},
|
},
|
||||||
|
child: I18nText('cancelButton'),
|
||||||
),
|
),
|
||||||
if (isFixable)
|
if (isFixable)
|
||||||
CustomMaterialButton(
|
FilledButton(
|
||||||
label: I18nText('okButton'),
|
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
final int response = await patcherChannel.invokeMethod(
|
final int response = await patcherChannel.invokeMethod(
|
||||||
'uninstallApp',
|
'uninstallApp',
|
||||||
@ -350,6 +355,7 @@ class PatcherAPI {
|
|||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
child: I18nText('okButton'),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
@ -46,7 +46,7 @@ dependencies:
|
|||||||
git:
|
git:
|
||||||
url: https://github.com/BenjaminHalko/logcat
|
url: https://github.com/BenjaminHalko/logcat
|
||||||
ref: 4a6d5e0e22292c8eb160cfb9365b9ea29735fd43 # Branch: master
|
ref: 4a6d5e0e22292c8eb160cfb9365b9ea29735fd43 # Branch: master
|
||||||
package_info_plus: ^4.2.0
|
package_info_plus: ^5.0.1
|
||||||
path_provider: ^2.0.14
|
path_provider: ^2.0.14
|
||||||
permission_handler: ^11.0.1
|
permission_handler: ^11.0.1
|
||||||
pull_to_refresh: ^2.0.0
|
pull_to_refresh: ^2.0.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user