add_to_cart_animated_button 1.0.0 copy "add_to_cart_animated_button: ^1.0.0" to clipboard
add_to_cart_animated_button: ^1.0.0 copied to clipboard

Add to Cart Button with Animation and Custom Styling for Modern Shopping apps like experience.

example/lib/main.dart

import 'package:example/buttons_type/basic_button.dart';
import 'package:example/buttons_type/controller_button.dart';
import 'package:example/buttons_type/custom_styling.dart';
import 'package:example/buttons_type/expanding_button.dart';
import 'package:example/buttons_type/plus_button.dart';
import 'package:example/inherited/base_value.dart';
import 'package:example/inherited/test_screen.dart' show TextScreen;
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return ChangeNotifierProvider(
      create: (context) => BaseValue(),
      child: MaterialApp(
        title: 'Flutter Demo',
        theme: ThemeData(
          colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
          useMaterial3: true,
        ),
        home: HomePage(),
      ),
    );
  }
}

class HomePage extends StatelessWidget {
  const HomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Padding(
          padding: EdgeInsets.symmetric(
            horizontal: 50,
          ),
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            mainAxisSize: MainAxisSize.min,
            children: [
              BasicButton(),
              SizedBox(
                height: 20,
              ),
              ExpandingButton(),
              SizedBox(
                height: 20,
              ),
              PlusButton(),
              SizedBox(
                height: 20,
              ),
              CustomStyling(),
              SizedBox(
                height: 20,
              ),
              ControllerButton(),
              SizedBox(
                height: 20,
              ),
              ElevatedButton(
                onPressed: () {
                  Navigator.of(context).push(
                    MaterialPageRoute(
                      builder: (context) => TextScreen(),
                    ),
                  );
                },
                child: Text('Inherited Test'),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
17
likes
160
points
397
downloads

Documentation

API reference

Publisher

verified publisheradipt.in

Weekly Downloads

Add to Cart Button with Animation and Custom Styling for Modern Shopping apps like experience.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, provider

More

Packages that depend on add_to_cart_animated_button