|
|
|
@ -192,18 +192,13 @@ class _AssetTrackingPageState extends State<AssetTrackingPage> with SingleTicker
|
|
|
|
padding: const EdgeInsets.all(16),
|
|
|
|
padding: const EdgeInsets.all(16),
|
|
|
|
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
|
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
|
crossAxisCount: 2,
|
|
|
|
crossAxisCount: 2,
|
|
|
|
childAspectRatio: 1.2, // need to fix this it's not flexiable with content..
|
|
|
|
childAspectRatio: 1.1, // need to fix this it's not flexiable with content..
|
|
|
|
crossAxisSpacing: 12,
|
|
|
|
crossAxisSpacing: 12,
|
|
|
|
mainAxisSpacing: 12,
|
|
|
|
mainAxisSpacing: 12,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
itemCount: provider.isLoading ? 6 : provider.assetsList.length,
|
|
|
|
itemCount: provider.isLoading ? 6 : provider.assetsList.length,
|
|
|
|
// separatorBuilder: (listContext, itemIndex) => 12.height,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
itemBuilder: (listContext, itemIndex) {
|
|
|
|
itemBuilder: (listContext, itemIndex) {
|
|
|
|
if (provider.isLoading) return const SizedBox().toAssetListShimmer(listContext, provider.isLoading);
|
|
|
|
if (provider.isLoading) return const SizedBox().toAssetListShimmer(listContext, provider.isLoading);
|
|
|
|
|
|
|
|
|
|
|
|
// Calculate staggered animation delay
|
|
|
|
|
|
|
|
final delay = itemIndex * 0.08;
|
|
|
|
final delay = itemIndex * 0.08;
|
|
|
|
final animation = Tween<double>(begin: 0.0, end: 1.0).animate(
|
|
|
|
final animation = Tween<double>(begin: 0.0, end: 1.0).animate(
|
|
|
|
CurvedAnimation(
|
|
|
|
CurvedAnimation(
|
|
|
|
|