This browser does not support the video element.
Animation always adds an extra value to the UX. In this tutorial we are doing a Flutter UI challenge recreating the story circle animation of Instagram using Flutter.
Install
For implementing the animation, we will be using the dashed_circle package for creating the dashed lines around the image. The first step is to add the package to pubspec.yaml as shown below.
Import
Import the package at the top of the dart file.
Widget
This is the entire widget used for creating the instagram story circle animation in Flutter. The animation has 3 Animations:
- base – To rotate the dashed border
- reverse – To keep the image stable without rotating along the dashes. Basically this gives a counter rotation cancelling the rottion created by base.
- gap – Reduces the gap between dashes
You can adjust the number of dashes, color of the dashed border, stroke-width and image size by changing the corresponding attributes inside the DashedCircle widget.
Need Help with Your Next Project??
Looking for expert support or custom development in Flutter, HTML5, Vue.js, or any other web technologies? Our team is here to help you build and optimize your digital presence.
Contact us today to discuss your project and see how we can take it to the next level!
CONTACT US NOW