intela 0.0.3
intela: ^0.0.3 copied to clipboard
Ce Package aide avec l'utilisation des transitions entre un écran et un autre. En d'autre mots, le routing entre pages. Simple à implemente et très élégant comme code.
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';
- 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')
)
),
- the package need the version flutter 2.17.0
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')
)
),
);
}
}
Additional information #
more importation for this package !
- Send us the pull request in GitHub : about your question.