svg_drawing_animation 0.9.1+3 copy "svg_drawing_animation: ^0.9.1+3" to clipboard
svg_drawing_animation: ^0.9.1+3 copied to clipboard

Widget for drawing animation of SVG. Uses flutter_svg for parsing.

example/lib/main.dart

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

import 'kanji_svg.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      home: Scaffold(
          appBar: AppBar(title: const Text('Example')),
          body: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
            Card(
              child: SizedBox(
                width: 50,
                height: 50,
                child: SvgDrawingAnimation(
                  SvgProviders.string(kanjiSvg),
                  duration: const Duration(seconds: 2),
                  repeats: true,
                ),
              ),
            ),
            Card(
              child: SizedBox(
                width: 100,
                height: 100,
                child: SvgDrawingAnimation(
                  SvgProviders.string(kanjiSvg),
                  duration: const Duration(seconds: 2),
                  curve: Curves.decelerate,
                  repeats: true,
                ),
              ),
            ),
            Card(
              child: SizedBox(
                width: 300,
                height: 300,
                child: SvgDrawingAnimation(
                  SvgProviders.network(
                      'https://upload.wikimedia.org/wikipedia/commons/4/4a/African_Elephant_SVG.svg'),
                  duration: const Duration(seconds: 10),
                  repeats: false,
                ),
              ),
            ),
          ])),
    );
  }
}
12
likes
0
pub points
64%
popularity

Publisher

verified publisherwafrat.com

Widget for drawing animation of SVG. Uses flutter_svg for parsing.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_svg, http

More

Packages that depend on svg_drawing_animation