feat : profile with logic

This commit is contained in:
2025-07-08 16:06:10 +03:30
parent a9b012b016
commit 146ea28e77
17 changed files with 1531 additions and 61 deletions

View File

@@ -146,6 +146,9 @@ class $AssetsIconsGen {
/// File path: assets/icons/liveStock.svg
SvgGenImage get liveStock => const SvgGenImage('assets/icons/liveStock.svg');
/// File path: assets/icons/lock.svg
SvgGenImage get lock => const SvgGenImage('assets/icons/lock.svg');
/// File path: assets/icons/logout.svg
SvgGenImage get logout => const SvgGenImage('assets/icons/logout.svg');
@@ -280,6 +283,7 @@ class $AssetsIconsGen {
key,
killogram,
liveStock,
lock,
logout,
map,
mapMarker,
@@ -463,6 +467,9 @@ class $AssetsVecGen {
/// File path: assets/vec/liveStock.svg.vec
SvgGenImage get liveStockSvg => const SvgGenImage.vec('assets/vec/liveStock.svg.vec');
/// File path: assets/vec/lock.svg.vec
SvgGenImage get lockSvg => const SvgGenImage.vec('assets/vec/lock.svg.vec');
/// File path: assets/vec/logout.svg.vec
SvgGenImage get logoutSvg => const SvgGenImage.vec('assets/vec/logout.svg.vec');
@@ -597,6 +604,7 @@ class $AssetsVecGen {
keySvg,
killogramSvg,
liveStockSvg,
lockSvg,
logoutSvg,
mapSvg,
mapMarkerSvg,

View File

@@ -114,17 +114,17 @@ class RListView<T> extends StatelessWidget {
@override
Widget build(BuildContext context) {
switch (resource.status) {
case Status.initial:
case Status.loading:
case ResourceStatus.initial:
case ResourceStatus.loading:
return loadingWidget;
case Status.error:
case ResourceStatus.error:
return errorWidget;
case Status.empty:
case ResourceStatus.empty:
return emptyWidget;
case Status.success:
case ResourceStatus.success:
if (resource.data?.isEmpty ?? true) {
return emptyWidget;
}