pikapika/lib/screens/components/LinkToComicInfo.dart

27 lines
581 B
Dart
Raw Permalink Normal View History

2021-09-29 23:57:09 +00:00
import 'package:flutter/material.dart';
2022-01-18 06:01:01 +00:00
import 'package:pikapika/basic/Navigator.dart';
2021-09-29 23:57:09 +00:00
import '../ComicInfoScreen.dart';
class LinkToComicInfo extends StatelessWidget {
final String comicId;
final Widget child;
const LinkToComicInfo({
required this.comicId,
required this.child,
2022-03-17 03:31:25 +00:00
Key? key,
}):super(key: key);
2021-09-29 23:57:09 +00:00
@override
Widget build(BuildContext context) => InkWell(
onTap: () {
navPushOrReplace(
context,
(context) => ComicInfoScreen(comicId: comicId),
);
},
child: child,
);
}