mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-01 10:50:13 +08:00
Update Galleries
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
|
||||
import '../api/gallery.dart';
|
||||
|
||||
@@ -16,7 +17,13 @@ class TagTooltip extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final name = _getTag(tag);
|
||||
final t = SelectableText(name);
|
||||
final t = InkWell(
|
||||
onTap: () {
|
||||
context.pushNamed("/galleries", queryParameters: {
|
||||
"tag": [tag.tag]
|
||||
});
|
||||
},
|
||||
child: Text(name));
|
||||
return tag.intro != null && tag.intro!.isNotEmpty
|
||||
? Tooltip(
|
||||
message: tag.intro!,
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import '../api/gallery.dart';
|
||||
import '../globals.dart';
|
||||
import '../main.dart';
|
||||
@@ -73,7 +74,13 @@ class _TagsPanel extends State<TagsPanel> {
|
||||
),
|
||||
child: stt
|
||||
? TagTooltip(ta[index - 1]!)
|
||||
: SelectableText(ta[index - 1]!.tag));
|
||||
: InkWell(
|
||||
onTap: () {
|
||||
context.pushNamed("/galleries", queryParameters: {
|
||||
"tag": [ta[index - 1]!.tag]
|
||||
});
|
||||
},
|
||||
child: Text(ta[index - 1]!.tag)));
|
||||
}
|
||||
}));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user