Add navigation route from list contents screen to content screen with size slide effect (WIP)
This commit is contained in:
parent
d94914bfcd
commit
93fc39a877
1 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
||||||
|
import 'package:page_transition/page_transition.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
import 'package:easy_learn/view/screens/content.dart';
|
||||||
|
|
||||||
class ListContentsBox extends StatelessWidget {
|
class ListContentsBox extends StatelessWidget {
|
||||||
const ListContentsBox({Key? key, required this.imagePath, required this.title}) : super(key: key);
|
const ListContentsBox({Key? key, required this.imagePath, required this.title}) : super(key: key);
|
||||||
|
|
||||||
|
@ -9,7 +12,9 @@ class ListContentsBox extends StatelessWidget {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return InkWell(
|
return InkWell(
|
||||||
onTap: (){},
|
onTap: (){
|
||||||
|
Navigator.push(context, PageTransition(type: PageTransitionType.size, alignment: Alignment.bottomCenter, child: const Content(category: 'None')));
|
||||||
|
},
|
||||||
child: Container(
|
child: Container(
|
||||||
padding: const EdgeInsets.all(5.0),
|
padding: const EdgeInsets.all(5.0),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
|
|
Loading…
Reference in a new issue