Created
May 30, 2024 10:06
-
-
Save JosephineAkello/9ebccb90205dcc0b5700a54877dc393a to your computer and use it in GitHub Desktop.
Splash screen demo with Lottie anim from remote Network URL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Widget build(BuildContext context) { | |
return Center( | |
// Adding a Lottie animation via Network URL | |
child: Lottie.network( | |
"https://lottie.host/bf81e742-c5ab-4a9d-82b3-826d17556baa/U5Qsu9gaZM.json", | |
fit: BoxFit.cover, | |
width: 300, | |
height: 300, | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment