diff --git a/lib/assets/animations/indicator-dark.riv b/lib/assets/animations/indicator-dark.riv new file mode 100644 index 0000000..d995f60 Binary files /dev/null and b/lib/assets/animations/indicator-dark.riv differ diff --git a/lib/assets/animations/indicator.riv b/lib/assets/animations/indicator-light.riv similarity index 100% rename from lib/assets/animations/indicator.riv rename to lib/assets/animations/indicator-light.riv diff --git a/lib/constants/assets.dart b/lib/constants/assets.dart index 27b28bc..ec1bea0 100644 --- a/lib/constants/assets.dart +++ b/lib/constants/assets.dart @@ -13,8 +13,8 @@ class Assets { static String get horizontalLogoWithText => _baseImagesPath + '/logos/logo-horizontal-$_themeSuffix.svg'; - static const String logoLoadingAnimation = - _baseAnimationsPath + '/indicator.riv'; + static String get logoLoadingAnimation => + _baseAnimationsPath + '/indicator-$_themeSuffix.riv'; static String get businessCategoryIcon => _baseImagesPath + '/categories/business-$_themeSuffix.svg'; diff --git a/lib/utils/actions_sheet.dart b/lib/utils/actions_sheet.dart index f3b333b..9ad255f 100644 --- a/lib/utils/actions_sheet.dart +++ b/lib/utils/actions_sheet.dart @@ -24,7 +24,7 @@ class ActionSheetUtils { padding: EdgeInsets.symmetric( horizontal: MediaQuery.of(context).size.width / 3, ), - child: const RiveAnimation.asset(Assets.logoLoadingAnimation), + child: RiveAnimation.asset(Assets.logoLoadingAnimation), // ), ), ); diff --git a/pubspec.yaml b/pubspec.yaml index 81a0276..636d094 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -103,7 +103,8 @@ flutter: - lib/assets/images/themes/theme-dark.svg - lib/assets/images/records/record-dark.svg - lib/assets/images/records/record-light.svg - - lib/assets/animations/indicator.riv + - lib/assets/animations/indicator-light.riv + - lib/assets/animations/indicator-dark.riv