pikapika/lib/screens/components/LinkToComicInfo.dart

26 lines
550 B
Dart
Raw Normal View History

2021-09-29 23:57:09 +00:00
import 'package:flutter/material.dart';
import 'package:pikapi/basic/Navigatior.dart';
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,
);
}