feat: role page
fix: import
This commit is contained in:
@@ -13,6 +13,7 @@ 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 {
|
||||
@@ -417,6 +418,16 @@ 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();
|
||||
|
||||
@@ -784,6 +795,7 @@ 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();
|
||||
}
|
||||
|
||||
@@ -932,6 +944,44 @@ 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 {}});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user