2021-09-29 23:57:09 +00:00
|
|
|
import 'package:flutter/material.dart';
|
2021-11-11 03:00:38 +00:00
|
|
|
import 'package:pikapika/basic/Navigatior.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,
|
|
|
|
});
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) => InkWell(
|
|
|
|
onTap: () {
|
|
|
|
navPushOrReplace(
|
|
|
|
context,
|
|
|
|
(context) => ComicInfoScreen(comicId: comicId),
|
|
|
|
);
|
|
|
|
},
|
|
|
|
child: child,
|
|
|
|
);
|
|
|
|
}
|