Skip to content

Commit

Permalink
Fix android filter
Browse files Browse the repository at this point in the history
  • Loading branch information
MiaoMint committed Aug 28, 2023
1 parent e186337 commit 18481a2
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions lib/pages/search/pages/search_extension.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import 'package:fluent_ui/fluent_ui.dart' as fluent;
import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart';
import 'package:flutter_i18n/flutter_i18n.dart';
import 'package:get/get.dart';
import 'package:miru_app/models/index.dart';
import 'package:miru_app/router/router.dart';
import 'package:miru_app/utils/extension.dart';
Expand Down Expand Up @@ -125,29 +126,43 @@ class _SearchExtensionPageState extends fluent.State<SearchExtensionPage> {
showModalBottomSheet(
context: context,
builder: (context) => Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsets.all(16),
padding: const EdgeInsets.only(
left: 16,
right: 16,
top: 16,
),
child: Row(
children: [
TextButton(
onPressed: () {
router.pop();
Get.back();
},
child: Text("common.cancel".i18n),
),
const Spacer(),
FilledButton(
onPressed: () {
router.pop();
Get.back();
_easyRefreshController.callRefresh();
},
child: Text("common.confirm".i18n),
)
],
),
),
Expanded(child: fiterWidget)
const Divider(),
Expanded(
child: Padding(
padding: const EdgeInsets.only(
left: 16,
right: 16,
top: 16,
),
child: fiterWidget,
))
],
),
);
Expand Down

0 comments on commit 18481a2

Please sign in to comment.