Add navigation route from list contents screen to content screen with size slide effect (WIP)

This commit is contained in:
Moe Poi ~ 2021-08-16 17:43:51 +07:00
parent d94914bfcd
commit 93fc39a877

View file

@ -1,5 +1,8 @@
import 'package:page_transition/page_transition.dart';
import 'package:flutter/material.dart';
import 'package:easy_learn/view/screens/content.dart';
class ListContentsBox extends StatelessWidget {
const ListContentsBox({Key? key, required this.imagePath, required this.title}) : super(key: key);
@ -9,7 +12,9 @@ class ListContentsBox extends StatelessWidget {
@override
Widget build(BuildContext context) {
return InkWell(
onTap: (){},
onTap: (){
Navigator.push(context, PageTransition(type: PageTransitionType.size, alignment: Alignment.bottomCenter, child: const Content(category: 'None')));
},
child: Container(
padding: const EdgeInsets.all(5.0),
decoration: BoxDecoration(