circle_ripple_navigation 0.0.3 copy "circle_ripple_navigation: ^0.0.3" to clipboard
circle_ripple_navigation: ^0.0.3 copied to clipboard

Circle Ripple Navigation

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:ripple_navigation_dart3/circle_ripple_navigation.dart';

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

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  GlobalKey<RippleLocationState> rippleControllerKey = GlobalKey();

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        floatingActionButton: RippleLocation(
          rippleController: rippleControllerKey,
          child: FloatingActionButton(
              onPressed: () {
                rippleControllerKey.currentState?.pushRippleTransitionPage(
                  context,
                  Scaffold(appBar: AppBar()),
                );
              },
              child: Icon(Icons.add)),
        ),
        body: Text("Main Page"),
      ),
    );
  }
}
4
likes
115
points
15
downloads

Publisher

unverified uploader

Weekly Downloads

Circle Ripple Navigation

Documentation

API reference

License

OFL-1.1, Apache-2.0, BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on circle_ripple_navigation