Last updated:
0 purchases
intela
DESCRIPTION : Package pour faire la transition d'un page à une autre avec une animation.
Features #
Transition d'une page à une autre.
Animation avec la transition
Sert de routing comme package
Vitesse de l'animation
Activé ou pas le back page before
Getting started #
Import de package
import 'package:intela/intela.dart';
copied to clipboard
User the package
Exemple code : transition page :
body: Center(
child: MaterialButton(
color: Colors.white,
onPressed: () {
RouteTransitions(
context: context,
child: const Page2(),
animation: AnimationType.fadeIn,
duration: const Duration( milliseconds: 1000 ),
// replacement: true
);
},
child: const Text('Go to page2')
)
),
copied to clipboard
Usage #
examples to /example folder.
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:intela/intela.dart';
import 'page2.dart';
class Page1 extends StatelessWidget {
const Page1({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Page 1'),
backgroundColor: Colors.transparent,
),
backgroundColor: Colors.blue,
body: Center(
child: MaterialButton(
color: Colors.white,
onPressed: () {
RouteTransitions(
context: context,
child: const Page2(),
animation: AnimationType.fadeIn,
duration: const Duration( milliseconds: 1000 ),
// replacement: true
);
},
child: const Text('Go to page2')
)
),
);
}
}
copied to clipboard
Additional information #
more importation for this package !
Send us the pull request in GitHub : about your question.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.