feat(shared): legacy presentation/ + shared design system + widgets

- lib/presentation : pages legacy (explore/network, notifications) avec BLoC
- lib/shared/design_system : UnionFlow Design System v2 (tokens, components)
  + MD3 tokens + module_colors par feature
- lib/shared/widgets : widgets transversaux (core_card, core_shimmer,
  error_widget, loading_widget, powered_by_lions_dev, etc.)
- lib/shared/constants + utils
This commit is contained in:
dahoud
2026-04-15 20:27:23 +00:00
parent 744faa3a9c
commit 7cd7c6fc9e
36 changed files with 1890 additions and 837 deletions

View File

@@ -67,12 +67,12 @@ class ShimmerListLoading extends StatelessWidget {
return Padding(
padding: const EdgeInsets.only(bottom: 12),
child: Shimmer.fromColors(
baseColor: Colors.grey[300]!,
highlightColor: Colors.grey[100]!,
baseColor: Theme.of(context).colorScheme.surfaceContainerHighest,
highlightColor: Theme.of(context).colorScheme.surface,
child: Container(
height: itemHeight,
decoration: BoxDecoration(
color: Colors.white,
color: Theme.of(context).colorScheme.surface,
borderRadius: BorderRadius.circular(8),
),
),
@@ -97,13 +97,13 @@ class ShimmerCardLoading extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Shimmer.fromColors(
baseColor: Colors.grey[300]!,
highlightColor: Colors.grey[100]!,
baseColor: Theme.of(context).colorScheme.surfaceContainerHighest,
highlightColor: Theme.of(context).colorScheme.surface,
child: Container(
height: height,
width: width,
decoration: BoxDecoration(
color: Colors.white,
color: Theme.of(context).colorScheme.surface,
borderRadius: BorderRadius.circular(12),
),
),
@@ -137,11 +137,11 @@ class ShimmerGridLoading extends StatelessWidget {
itemCount: itemCount,
itemBuilder: (context, index) {
return Shimmer.fromColors(
baseColor: Colors.grey[300]!,
highlightColor: Colors.grey[100]!,
baseColor: Theme.of(context).colorScheme.surfaceContainerHighest,
highlightColor: Theme.of(context).colorScheme.surface,
child: Container(
decoration: BoxDecoration(
color: Colors.white,
color: Theme.of(context).colorScheme.surface,
borderRadius: BorderRadius.circular(12),
),
),
@@ -158,8 +158,8 @@ class ShimmerDetailLoading extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Shimmer.fromColors(
baseColor: Colors.grey[300]!,
highlightColor: Colors.grey[100]!,
baseColor: Theme.of(context).colorScheme.surfaceContainerHighest,
highlightColor: Theme.of(context).colorScheme.surface,
child: Padding(
padding: const EdgeInsets.all(10),
child: Column(
@@ -169,7 +169,7 @@ class ShimmerDetailLoading extends StatelessWidget {
Container(
height: 200,
decoration: BoxDecoration(
color: Colors.white,
color: Theme.of(context).colorScheme.surface,
borderRadius: BorderRadius.circular(12),
),
),
@@ -178,14 +178,14 @@ class ShimmerDetailLoading extends StatelessWidget {
Container(
height: 24,
width: double.infinity,
color: Colors.white,
color: Theme.of(context).colorScheme.surface,
),
const SizedBox(height: 8),
// Subtitle
Container(
height: 16,
width: 200,
color: Colors.white,
color: Theme.of(context).colorScheme.surface,
),
const SizedBox(height: 12),
// Content lines
@@ -195,7 +195,7 @@ class ShimmerDetailLoading extends StatelessWidget {
child: Container(
height: 12,
width: double.infinity,
color: Colors.white,
color: Theme.of(context).colorScheme.surface,
),
);
}),