feat(app): Добавить снекбар

This commit is contained in:
PetrovY
2025-06-06 16:45:40 +03:00
parent ff6fe50b2b
commit 9ddeb73852
17 changed files with 1013 additions and 204 deletions

View File

@@ -33,12 +33,12 @@ class $AssetsFontsGen {
/// List of all assets
List<String> get values => [
montserratBold,
montserratExtraBold,
montserratMedium,
montserratRegular,
montserratSemiBold,
];
montserratBold,
montserratExtraBold,
montserratMedium,
montserratRegular,
montserratSemiBold
];
}
class $AssetsIconsGen {
@@ -63,7 +63,7 @@ class $AssetsLottieGen {
}
class Assets {
const Assets._();
Assets._();
static const $AssetsFontsGen fonts = $AssetsFontsGen();
static const $AssetsIconsGen icons = $AssetsIconsGen();
@@ -71,11 +71,17 @@ class Assets {
}
class SvgGenImage {
const SvgGenImage(this._assetName, {this.size, this.flavors = const {}})
: _isVecFormat = false;
const SvgGenImage(
this._assetName, {
this.size,
this.flavors = const {},
}) : _isVecFormat = false;
const SvgGenImage.vec(this._assetName, {this.size, this.flavors = const {}})
: _isVecFormat = true;
const SvgGenImage.vec(
this._assetName, {
this.size,
this.flavors = const {},
}) : _isVecFormat = true;
final String _assetName;
final Size? size;
@@ -129,8 +135,7 @@ class SvgGenImage {
placeholderBuilder: placeholderBuilder,
semanticsLabel: semanticsLabel,
excludeFromSemantics: excludeFromSemantics,
colorFilter:
colorFilter ??
colorFilter: colorFilter ??
(color == null ? null : ColorFilter.mode(color, colorBlendMode)),
clipBehavior: clipBehavior,
cacheColorFilter: cacheColorFilter,
@@ -143,7 +148,10 @@ class SvgGenImage {
}
class LottieGenImage {
const LottieGenImage(this._assetName, {this.flavors = const {}});
const LottieGenImage(
this._assetName, {
this.flavors = const {},
});
final String _assetName;
final Set<String> flavors;
@@ -160,8 +168,11 @@ class LottieGenImage {
_lottie.LottieImageProviderFactory? imageProviderFactory,
Key? key,
AssetBundle? bundle,
Widget Function(BuildContext, Widget, _lottie.LottieComposition?)?
frameBuilder,
Widget Function(
BuildContext,
Widget,
_lottie.LottieComposition?,
)? frameBuilder,
ImageErrorWidgetBuilder? errorBuilder,
double? width,
double? height,
@@ -171,9 +182,6 @@ class LottieGenImage {
bool? addRepaintBoundary,
FilterQuality? filterQuality,
void Function(String)? onWarning,
_lottie.LottieDecoder? decoder,
_lottie.RenderCache? renderCache,
bool? backgroundLoading,
}) {
return _lottie.Lottie.asset(
_assetName,
@@ -198,9 +206,6 @@ class LottieGenImage {
addRepaintBoundary: addRepaintBoundary,
filterQuality: filterQuality,
onWarning: onWarning,
decoder: decoder,
renderCache: renderCache,
backgroundLoading: backgroundLoading,
);
}