diff --git a/lib/views/profile/level/flow-anim.dart b/lib/views/profile/level/flow-anim.dart index bd6b293..d2f065a 100644 --- a/lib/views/profile/level/flow-anim.dart +++ b/lib/views/profile/level/flow-anim.dart @@ -1,9 +1,7 @@ import 'dart:math'; import 'package:flutter/material.dart'; -import 'package:get/get.dart'; -import '../../../services/get/theme_controller.dart'; import '../../../models/colors/theme_colors.dart'; /// 流动边框装饰器 @@ -84,7 +82,6 @@ class _FlowingBorderContainerState extends State with SingleTickerProviderStateMixin { late AnimationController _controller; late Animation _animation; - final ThemeController _themeController = Get.find(); @override void initState() { @@ -111,21 +108,15 @@ class _FlowingBorderContainerState extends State return AnimatedBuilder( animation: _animation, builder: (context, child) { - return Obx(() { - final color = - widget.color ?? - ThemeColors.getThemeColor(_themeController.themeColorIndexRx.value); - - return Container( - padding: EdgeInsets.all(widget.width), - decoration: FlowingBorderDecoration( - animation: _animation, - color: color, - width: widget.width, - ), - child: widget.child, - ); - }); + return Container( + padding: EdgeInsets.all(widget.width), + decoration: FlowingBorderDecoration( + animation: _animation, + color: widget.color ?? ThemeColors.getThemeColor(0), + width: widget.width, + ), + child: widget.child, + ); }, ); } diff --git a/lib/views/profile/level/poetry.dart b/lib/views/profile/level/poetry.dart index 2a00a85..ff9f472 100644 --- a/lib/views/profile/level/poetry.dart +++ b/lib/views/profile/level/poetry.dart @@ -743,8 +743,7 @@ class _PoetryLevelPageState extends State : Colors.white, ), ), - color: AppConstants - .primaryColor, + color: primaryColor, width: 4, ), ),