feat : new changes from back

This commit is contained in:
2025-10-13 15:12:07 +03:30
parent e0a98b052b
commit ae022a5725
5 changed files with 7 additions and 66 deletions

View File

@@ -13,7 +13,6 @@ import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_svg/flutter_svg.dart' as _svg;
import 'package:lottie/lottie.dart' as _lottie;
import 'package:rive/rive.dart' as _rive;
import 'package:vector_graphics/vector_graphics.dart' as _vg;
class $AssetsAnimGen {
@@ -516,16 +515,6 @@ class $AssetsLogosGen {
List<AssetGenImage> get values => [finalLogo];
}
class $AssetsRiveGen {
const $AssetsRiveGen();
/// File path: assets/rive/shapes.riv
RiveGenImage get shapes => const RiveGenImage('assets/rive/shapes.riv');
/// List of all assets
List<RiveGenImage> get values => [shapes];
}
class $AssetsVecGen {
const $AssetsVecGen();
@@ -985,7 +974,6 @@ class Assets {
static const $AssetsIconsGen icons = $AssetsIconsGen();
static const $AssetsImagesGen images = $AssetsImagesGen();
static const $AssetsLogosGen logos = $AssetsLogosGen();
static const $AssetsRiveGen rive = $AssetsRiveGen();
static const $AssetsVecGen vec = $AssetsVecGen();
}
@@ -1134,44 +1122,6 @@ class SvgGenImage {
String get keyName => _assetName;
}
class RiveGenImage {
const RiveGenImage(this._assetName, {this.flavors = const {}});
final String _assetName;
final Set<String> flavors;
_rive.RiveAnimation rive({
String? artboard,
List<String> animations = const [],
List<String> stateMachines = const [],
BoxFit? fit,
Alignment? alignment,
Widget? placeHolder,
bool antialiasing = true,
bool useArtboardSize = false,
List<_rive.RiveAnimationController> controllers = const [],
_rive.OnInitCallback? onInit,
}) {
return _rive.RiveAnimation.asset(
_assetName,
artboard: artboard,
animations: animations,
stateMachines: stateMachines,
fit: fit,
alignment: alignment,
placeHolder: placeHolder,
antialiasing: antialiasing,
useArtboardSize: useArtboardSize,
controllers: controllers,
onInit: onInit,
);
}
String get path => _assetName;
String get keyName => _assetName;
}
class LottieGenImage {
const LottieGenImage(this._assetName, {this.flavors = const {}});