mirror of
https://github.com/xvrh/lottie-flutter.git
synced 2025-08-06 16:39:36 +08:00
36 lines
843 B
Dart
36 lines
843 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:lottie/lottie.dart';
|
|
|
|
void main() => runApp(const MyApp());
|
|
|
|
class MyApp extends StatelessWidget {
|
|
const MyApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
home: Scaffold(
|
|
body: ListView(
|
|
children: [
|
|
Lottie.asset(
|
|
'assets/Tests/Fill.json',
|
|
height: 300,
|
|
delegates: LottieDelegates(values: [
|
|
ValueDelegate.dropShadow(
|
|
['**'],
|
|
value: const DropShadow(
|
|
color: Colors.blue,
|
|
direction: 140,
|
|
distance: 60,
|
|
radius: 10,
|
|
),
|
|
),
|
|
]),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|