Closed Aoi-hosizora closed 3 years ago
Done.
SliverAppBarSizedDelegate(
minHeight: 26.0 + 5 * 2 + 1, // <<<
maxHeight: 26.0 + 5 * 2 + 1,
child: Container(
color: Colors.white,
child: Column(
children: [
Padding(
padding: EdgeInsets.symmetric(horizontal: 10, vertical: 5),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Container(
height: 26, // <<<
padding: EdgeInsets.only(left: 5),
child: Center(
child: Text('全部漫画 (共 $_total 部)'),
),
),
if (_total > 0)
OptionPopupView<MangaOrder>( // <<<
title: _order.toTitle(),
top: 4,
value: _order,
items: [MangaOrder.byPopular, MangaOrder.byNew, MangaOrder.byUpdate],
onSelect: (o) {
if (_order != o) {
_lastOrder = _order;
_order = o;
if (mounted) setState(() {});
_controller.refresh();
}
},
optionBuilder: (c, v) => v.toTitle(),
enable: !_disableOption,
),
],
),
),
Divider(height: 1, thickness: 1),
],
),
),
)
Need to update codes.
https://github.com/Aoi-hosizora/manhuagui_flutter/blob/fff5c2b1d44e2b25526f8bde3f414d6fbfbb6065/lib/page/author.dart#L220-L236