Skip to content

Commit

Permalink
Add Lottie animation instead of item pictures
Browse files Browse the repository at this point in the history
  • Loading branch information
SepehrFakoori committed Jul 12, 2024
1 parent 67f304e commit e80b364
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/screens/home_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:loading_animation_widget/loading_animation_widget.dart';
import 'package:lottie/lottie.dart';

class HomeScreen extends StatefulWidget {
const HomeScreen({super.key});
Expand Down Expand Up @@ -343,7 +344,10 @@ class _CurrencyCardContainerState extends State<CurrencyCardContainer> {
width: 50,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(25),
color: Colors.red,
),
child: LottieBuilder.asset(
"assets/lottie/coin_animation.json",
frameRate: FrameRate.max,
),
),
const SizedBox(width: 10),
Expand Down

0 comments on commit e80b364

Please sign in to comment.