mirror of
https://github.com/xvrh/lottie-flutter.git
synced 2025-08-06 16:39:36 +08:00
25 lines
636 B
Dart
25 lines
636 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:lottie/lottie.dart';
|
|
|
|
void main() => runApp(MyApp());
|
|
|
|
class MyApp extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
home: Scaffold(
|
|
body: ListView(
|
|
children: [
|
|
// Load a Lottie file from your assets
|
|
Lottie.asset('assets/LottieLogo1.json'),
|
|
|
|
// Load a Lottie file from a remote url
|
|
Lottie.network(
|
|
'https://raw.githubusercontent.com/xvrh/lottie-flutter/master/sample_app/assets/Mobilo/A.json'),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|