mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-05-17 20:37:06 +02:00
feat: Replace FAB with simple button. (FAB blocked imp content.)
This commit is contained in:
parent
cfad7222ab
commit
63f43806ae
@ -24,16 +24,6 @@ class _PatchesSelectorViewState extends State<PatchesSelectorView> {
|
|||||||
onModelReady: (model) => model.initialise(),
|
onModelReady: (model) => model.initialise(),
|
||||||
viewModelBuilder: () => locator<PatchesSelectorViewModel>(),
|
viewModelBuilder: () => locator<PatchesSelectorViewModel>(),
|
||||||
builder: (context, model, child) => Scaffold(
|
builder: (context, model, child) => Scaffold(
|
||||||
floatingActionButton: FloatingActionButton.extended(
|
|
||||||
onPressed: () {
|
|
||||||
model.selectPatches(patches);
|
|
||||||
Navigator.of(context).pop();
|
|
||||||
},
|
|
||||||
label: I18nText('patchesSelectorView.fabButton'),
|
|
||||||
icon: const Icon(Icons.check),
|
|
||||||
backgroundColor: const Color(0xff7792BA),
|
|
||||||
foregroundColor: Colors.white,
|
|
||||||
),
|
|
||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding:
|
padding:
|
||||||
@ -55,7 +45,24 @@ class _PatchesSelectorViewState extends State<PatchesSelectorView> {
|
|||||||
const SizedBox(height: 12),
|
const SizedBox(height: 12),
|
||||||
query.isEmpty || query.length < 2
|
query.isEmpty || query.length < 2
|
||||||
? _getAllResults(model)
|
? _getAllResults(model)
|
||||||
: _getFilteredResults(model)
|
: _getFilteredResults(model),
|
||||||
|
MaterialButton(
|
||||||
|
textColor: Colors.white,
|
||||||
|
color: const Color(0x957792BA),
|
||||||
|
minWidth: double.infinity,
|
||||||
|
padding: const EdgeInsets.symmetric(
|
||||||
|
vertical: 12,
|
||||||
|
horizontal: 8,
|
||||||
|
),
|
||||||
|
shape: RoundedRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.circular(12),
|
||||||
|
),
|
||||||
|
onPressed: () {
|
||||||
|
model.selectPatches(patches);
|
||||||
|
Navigator.of(context).pop();
|
||||||
|
},
|
||||||
|
child: I18nText('patchesSelectorView.fabButton'),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
: const Center(
|
: const Center(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user