DESCRIPTION : Package pour faire la transition d'un page à une autre avec une animation.

Features

  1. Transition d'une page à une autre.
  2. Animation avec la transition
  3. Sert de routing comme package
  4. Vitesse de l'animation
  5. Activé ou pas le back page before

Getting started

  1. Import de package
import 'package:intela/intela.dart';
  1. 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')
    )
),

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.

Libraries

intela