animatedroute 0.0.12 copy "animatedroute: ^0.0.12" to clipboard
animatedroute: ^0.0.12 copied to clipboard

outdated

A flutter package that allows developers to animate their page route using flutter, works for both android and ios.

example/main.dart

import 'package:animatedroute/animatedroute.dart';
import 'package:flutter/material.dart';

void main() async {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        debugShowCheckedModeBanner: false,
        title: 'Tweet Savages',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: ExampleApp());
  }
}

class ExampleApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.red,
      body: Container(
        child: Center(
          child: RaisedButton(
            onPressed: () {
              Navigator.of(context).push(AnimatedRoute(
                  widget: NextScreen(),
                  curves: Curves.easeInOutCubic,
                  alignment: Alignment.bottomCenter));
            },
          ),
        ),
      ),
    );
  }
}

class NextScreen extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(),
      backgroundColor: Colors.lightBlueAccent,
    );
  }
}
17
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A flutter package that allows developers to animate their page route using flutter, works for both android and ios.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on animatedroute