diff --git a/lib/page/novel/user/novel_users_page.dart b/lib/page/novel/user/novel_users_page.dart index 465884374..50a4c9aff 100644 --- a/lib/page/novel/user/novel_users_page.dart +++ b/lib/page/novel/user/novel_users_page.dart @@ -284,10 +284,11 @@ class _NovelUsersPageState extends State final dio = Dio(BaseOptions(headers: Hoster.header(url: url))); if (!userSetting.disableBypassSni) { dio.httpClientAdapter = IOHttpClientAdapter() - ..createHttpClient = () { - return HttpClient() - ..badCertificateCallback = - (X509Certificate cert, String host, int port) => true;}; + ..createHttpClient = () { + return HttpClient() + ..badCertificateCallback = + (X509Certificate cert, String host, int port) => true; + }; } await dio.download(url.toTrueUrl(), tempFile, deleteOnError: true); File file = File(tempFile); @@ -389,6 +390,13 @@ class _NovelUsersPageState extends State widget.id.toString(), userStore.userDetail!.user.name)); break; } + case 4: + Navigator.of(context) + .push(MaterialPageRoute(builder: (BuildContext context) { + return UsersPage( + id: widget.id, + ); + })); default: } }, @@ -410,6 +418,10 @@ class _NovelUsersPageState extends State value: 3, child: Text(I18n.of(context).report), ), + PopupMenuItem( + value: 4, + child: Text('illust page'), + ), ]; }, ); diff --git a/lib/page/novel/viewer/novel_viewer.dart b/lib/page/novel/viewer/novel_viewer.dart index bf280447f..d03fe8557 100644 --- a/lib/page/novel/viewer/novel_viewer.dart +++ b/lib/page/novel/viewer/novel_viewer.dart @@ -532,6 +532,7 @@ class _NovelViewerPageState extends State { Future _showMessage(BuildContext context) { return showModalBottomSheet( context: context, + isScrollControlled: true, shape: RoundedRectangleBorder( borderRadius: BorderRadius.vertical(top: Radius.circular(16.0))), builder: (context) { diff --git a/lib/page/user/users_page.dart b/lib/page/user/users_page.dart index 995ccf465..40b543b9a 100644 --- a/lib/page/user/users_page.dart +++ b/lib/page/user/users_page.dart @@ -37,6 +37,7 @@ import 'package:pixez/main.dart'; import 'package:pixez/models/illust.dart'; import 'package:pixez/network/api_client.dart'; import 'package:pixez/page/follow/follow_list.dart'; +import 'package:pixez/page/novel/user/novel_users_page.dart'; import 'package:pixez/page/picture/user_follow_button.dart'; import 'package:pixez/page/report/report_items_page.dart'; import 'package:pixez/page/shield/shield_page.dart'; @@ -533,6 +534,13 @@ class _UsersPageState extends State with TickerProviderStateMixin { widget.id.toString(), userStore.userDetail!.user.name)); break; } + case 4: + Navigator.of(context) + .push(MaterialPageRoute(builder: (BuildContext context) { + return NovelUsersPage( + id: widget.id, + ); + })); default: } }, @@ -555,6 +563,10 @@ class _UsersPageState extends State with TickerProviderStateMixin { value: 3, child: Text(I18n.of(context).report), ), + PopupMenuItem( + value: 4, + child: Text('Novel page'), + ), ]; }, );