diff --git a/lib/views/profile/level/flow-anim.dart b/lib/views/profile/level/flow-anim.dart index 9f51051..bd6b293 100644 --- a/lib/views/profile/level/flow-anim.dart +++ b/lib/views/profile/level/flow-anim.dart @@ -108,14 +108,14 @@ class _FlowingBorderContainerState extends State @override Widget build(BuildContext context) { - return Obx(() { - final color = - widget.color ?? - ThemeColors.getThemeColor(_themeController.themeColorIndexRx.value); + return AnimatedBuilder( + animation: _animation, + builder: (context, child) { + return Obx(() { + final color = + widget.color ?? + ThemeColors.getThemeColor(_themeController.themeColorIndexRx.value); - return AnimatedBuilder( - animation: _animation, - builder: (context, child) { return Container( padding: EdgeInsets.all(widget.width), decoration: FlowingBorderDecoration( @@ -125,8 +125,8 @@ class _FlowingBorderContainerState extends State ), child: widget.child, ); - }, - ); - }); + }); + }, + ); } }