Rive animations in Flutter Last Updated : 05 Mar, 2025 Comments Improve Suggest changes Like Article Like Report Rive is a very useful animation tool that can create beautiful animations and we can add these in our Application. In flutter, we can add animations by writing so many lines of code but this is not a good practice for a developer. Instead of writing lines of code to create animation, we can create one, using this powerful Rive animation tool. Please read all the below points in sequence to understand the topic clearly. Steps to implement rive animations in flutterStep 1 : Create a new flutter applicationCreate a new Flutter application using command Prompt. For creating a new app, write flutter create YOUR_APP_NAME and run this command.flutter create river_flutterTo know more about it refer this article: Creating a Simple Application in FlutterStep 2 : Select and download assetsNow to create new animation go ahead to https://rive.app/explore/popular/trending/all.You can also export animations that were created by some other users. Click any animation and Click "Open in Rive". Then download it by clicking the export button.The file extension should be .riv and format should be Binary.Now, open VS Code and create new folder "assets" in the root directory of the application and paste the files which you have downloaded from rive. Step 3 : Edit pubspec.yaml fileAdd rive in dependencies :dependencies: rive: ^0.13.20Add assets in flutter:assets: - assets/vechiles.rivStep 4 : Display that using RiveAnimation.asset. Dart RiveAnimation.asset( 'assets/vehicles.riv', ) Complete source code (main.dart) main.dart import 'package:flutter/material.dart'; import 'package:rive/rive.dart'; void main() => runApp(MaterialApp( debugShowCheckedModeBanner: false, home: MyRiveAnimation(), )); class MyRiveAnimation extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text("GeeksforGeeks"), backgroundColor: Colors.green, foregroundColor: Colors.white, ), body: Center( child: RiveAnimation.asset( 'assets/vehicles.riv', )), ); } } Output: Comment More infoAdvertise with us Next Article Rive animations in Flutter S singh_teekam Follow Improve Article Tags : Dart Flutter Flutter UI-components Similar Reads Flutter - Hinge Animation Animations are a big part of the Flutter application. It makes an app sweet to the eyes and equally user-friendly. In this article, we will discuss in detail the Hinge animations. In Flutter there are two ways to work with animations namely:A pub packageAnimated Builder WidgetIn this article, we wil 4 min read Flutter - Wave Animation In this article, we are going to make a Flutter application that demonstrates the creation of a dynamic wave animation. This animation simulates the motion of water waves, creating an engaging visual effect that can be used in various Flutter applications to add styling effects. A sample video is gi 5 min read Page View Animation in Flutter Page View is a list that works page by page. In this article, we will gonna do How to Animate the Page when sliding. A sample video is given below to get an idea about what we are going to do in this article. We will use the Transform widget to animate the page. Syntax Creating a Page controller th 4 min read Flutter - Working with Animations Whenever building an app animation plays a vital role in designing the experience of the user. People tend to like an app that has a smooth flow and a slick design. The Flutter Package provides a variety of methods to create and use animation in our app. We will be discussing the inbuilt Flutter wid 9 min read Flutter - Lottie Animation Visualization is an integral part of any application. Animations can highly glorify the UI of an app, but animations can be hectic to implement for an application. This is where the Lottie animation comes in. Lottie is a JSON-based animation file. It can be used both as a network asset and a static 3 min read Like