lordicon 1.0.3 copy "lordicon: ^1.0.3" to clipboard
lordicon: ^1.0.3 copied to clipboard

This library allows you to easily integrate the playback of Lordicon icons into a Flutter application.

example/lib/main.dart

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

void main() => runApp(const MyApp());

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

  @override
  Widget build(BuildContext context) {
    var controller = IconController.assets('assets/lock.json');

    controller.addStatusListener((status) {
      if (status == ControllerStatus.ready) {
        controller.playFromBeginning();
      }
    });

    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: IconViewer(
            controller: controller,
            width: 200,
            height: 200,
          ),
        ),
      ),
    );
  }
}
2
likes
110
pub points
79%
popularity

Publisher

verified publisherlordicon.com

This library allows you to easily integrate the playback of Lordicon icons into a Flutter application.

Homepage
Repository (GitHub)
View/report issues

Topics

#lordicon #lottie #icon #animation

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, lottie, path

More

Packages that depend on lordicon