Aoi-hosizora / manhuagui_flutter

An unofficial android application for manhuagui, powered by flutter.
https://ghp.aoihosizora.top/manhuagui_flutter/
MIT License
33 stars 2 forks source link

Text size and tabbar height #3

Closed Aoi-hosizora closed 3 years ago

Aoi-hosizora commented 3 years ago

Need to update codes.

https://github.com/Aoi-hosizora/manhuagui_flutter/blob/fff5c2b1d44e2b25526f8bde3f414d6fbfbb6065/lib/page/author.dart#L220-L236

MediaQuery(
  data: MediaQueryData.fromWindow(WidgetsBinding.instance.window).copyWith(textScaleFactor: 1),
  child: Container(),
)
Aoi-hosizora commented 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),
                      ],
                    ),
                  ),
                )