holdnload 0.0.2 copy "holdnload: ^0.0.2" to clipboard
holdnload: ^0.0.2 copied to clipboard

This package was created to show the animated button for story and reels.

example/lib/main.dart

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

void main() {
  runApp(const MaterialApp(
    debugShowCheckedModeBanner: false,
    home: MyApp(),
  ));
}

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.blueGrey,
      body: Center(
        child: HoldAndLoad(
          controller: ShootingController(ShootingValue(false, false)),
          isShootingButtonAnimate: false,
          style: Style.withGradientColor(
              outerSize: const Size.square(115),
              innerSize: const Size.square(82),
              outerColor: Colors.white,
              progressColor: Colors.redAccent,
              gradient: const LinearGradient(
                begin: Alignment.centerLeft,
                end: Alignment.centerRight,
                colors: [
                  Color(0xFF00AACE),
                  Color(0xFF006BCE),
                ],
              ),
              progressWidth: 3,
              outerWidth: 4),
          callBackShootingEnd: () {},
          callBackShootingStart: () {},
          listener: () {
          },
          child: Image.asset(
            'assets/images/video.png',
            width: 30,
            height: 30,
          ),
        ),
      ),
    );
  }
}
6
likes
130
points
33
downloads

Publisher

unverified uploader

Weekly Downloads

This package was created to show the animated button for story and reels.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on holdnload