reload reader pop

This commit is contained in:
niuhuan 2022-01-12 16:36:37 +08:00
parent 83a49cd2e3
commit ad8b27bc5e
3 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,3 @@
import 'dart:io';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:pikapika/basic/config/Address.dart'; import 'package:pikapika/basic/config/Address.dart';
import 'package:pikapika/basic/config/AndroidDisplayMode.dart'; import 'package:pikapika/basic/config/AndroidDisplayMode.dart';

View File

@ -14,10 +14,10 @@ class ComicCommentItem extends StatefulWidget {
const ComicCommentItem(this.mainType, this.mainId, this.comment); const ComicCommentItem(this.mainType, this.mainId, this.comment);
@override @override
State<StatefulWidget> createState() => _ComicCommentItem(); State<StatefulWidget> createState() => _ComicCommentItemState();
} }
class _ComicCommentItem extends State<ComicCommentItem> { class _ComicCommentItemState extends State<ComicCommentItem> {
var likeLoading = false; var likeLoading = false;
@override @override

View File

@ -820,7 +820,10 @@ class _SettingPanelState extends State<_SettingPanel> {
_bottomIcon( _bottomIcon(
icon: Icons.refresh, icon: Icons.refresh,
title: "重载页面", title: "重载页面",
onPressed: widget.onReloadEp, onPressed: () {
Navigator.of(context).pop();
widget.onReloadEp();
},
), ),
_bottomIcon( _bottomIcon(
icon: Icons.file_download, icon: Icons.file_download,