mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
fix: use square FABs instead of round FABs to comply with MD3
This commit is contained in:
parent
c0b164ec26
commit
2427b0847d
@ -31,7 +31,7 @@
|
||||
},
|
||||
"patcherView": {
|
||||
"widgetTitle": "Patcher",
|
||||
"fabButton": "Patch"
|
||||
"patchButton": "Patch"
|
||||
},
|
||||
"appSelectorCard": {
|
||||
"widgetTitle": "Select application",
|
||||
@ -50,7 +50,7 @@
|
||||
},
|
||||
"appSelectorView": {
|
||||
"searchBarHint": "Search applications",
|
||||
"fabButton": "Storage",
|
||||
"storageButton": "Storage",
|
||||
"errorMessage": "Unable to use selected application."
|
||||
},
|
||||
"patchesSelectorView": {
|
||||
|
@ -23,12 +23,17 @@ class _AppSelectorViewState extends State<AppSelectorView> {
|
||||
viewModelBuilder: () => AppSelectorViewModel(),
|
||||
builder: (context, model, child) => Scaffold(
|
||||
floatingActionButton: FloatingActionButton.extended(
|
||||
label: I18nText('appSelectorView.storageButton'),
|
||||
icon: const Icon(Icons.sd_storage),
|
||||
onPressed: () {
|
||||
model.selectAppFromStorage(context);
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
label: I18nText('appSelectorView.fabButton'),
|
||||
icon: const Icon(Icons.sd_storage),
|
||||
shape: const RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.all(
|
||||
Radius.circular(16.0),
|
||||
),
|
||||
),
|
||||
backgroundColor: Theme.of(context).colorScheme.secondary,
|
||||
foregroundColor: Colors.white,
|
||||
),
|
||||
|
@ -12,10 +12,6 @@ class ContributorsView extends StatelessWidget {
|
||||
viewModelBuilder: () => ContributorsViewModel(),
|
||||
onModelReady: (model) => model.getContributors(),
|
||||
builder: (context, model, child) => Scaffold(
|
||||
floatingActionButton: FloatingActionButton(
|
||||
onPressed: () => model.getContributors(),
|
||||
child: const Icon(Icons.refresh),
|
||||
),
|
||||
body: SafeArea(
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
|
@ -18,11 +18,16 @@ class PatcherView extends StatelessWidget {
|
||||
viewModelBuilder: () => locator<PatcherViewModel>(),
|
||||
builder: (context, model, child) => Scaffold(
|
||||
floatingActionButton: Visibility(
|
||||
visible: model.showFabButton(),
|
||||
visible: model.showPatchButton(),
|
||||
child: FloatingActionButton.extended(
|
||||
onPressed: () => model.navigateToInstaller(),
|
||||
label: I18nText('patcherView.fabButton'),
|
||||
label: I18nText('patcherView.patchButton'),
|
||||
icon: const Icon(Icons.build),
|
||||
onPressed: () => model.navigateToInstaller(),
|
||||
shape: const RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.all(
|
||||
Radius.circular(16.0),
|
||||
),
|
||||
),
|
||||
backgroundColor: Theme.of(context).colorScheme.secondary,
|
||||
foregroundColor: Colors.white,
|
||||
),
|
||||
|
@ -25,7 +25,7 @@ class PatcherViewModel extends BaseViewModel {
|
||||
_navigationService.navigateTo(Routes.installerView);
|
||||
}
|
||||
|
||||
bool showFabButton() {
|
||||
bool showPatchButton() {
|
||||
return selectedPatches.isNotEmpty;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user