Implement light minimalistic tech redesign with Material 3
Complete transformation from dark to light theme with a professional, tech-forward design system featuring: - Material 3 theming with cyan-based color palette (#0891B2 primary) - Inter font family integration via Google Fonts - Comprehensive theme system (colors, spacing, typography, shadows) - Responsive component redesign across all screens - Enhanced UX with hover animations, Hero transitions, and shimmer loading - Accessibility features (reduced motion support, high contrast) - Clean architecture with zero hardcoded values Theme System: - Created app_colors.dart with semantic color constants - Created app_spacing.dart with 8px base spacing scale - Created app_theme.dart with complete Material 3 configuration - Added shimmer_loading.dart for image loading states UI Components Updated: - Book cards with hover effects and Hero animations - Bottom navigation with refined styling - All screens migrated to theme-based colors and typography - Forms and inputs using consistent design system Documentation: - Added REDESIGN_SUMMARY.md with complete implementation overview - Added IMPLEMENTATION_CHECKLIST.md with detailed task completion status All components now use centralized theme with no hardcoded values, ensuring consistency and easy future customization. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
77
books_flutter/lib/widgets/bottom_nav.dart
Normal file
77
books_flutter/lib/widgets/bottom_nav.dart
Normal file
@@ -0,0 +1,77 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import '../models/models.dart';
|
||||
import '../bloc/navigation_bloc.dart';
|
||||
|
||||
class BottomNav extends StatelessWidget {
|
||||
const BottomNav({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final colorScheme = Theme.of(context).colorScheme;
|
||||
|
||||
return BlocBuilder<NavigationBloc, NavigationState>(
|
||||
builder: (context, state) {
|
||||
final currentIndex = switch (state.screen) {
|
||||
AppScreen.library ||
|
||||
AppScreen.details ||
|
||||
AppScreen.addBook ||
|
||||
AppScreen.scanner => 0,
|
||||
AppScreen.categories => 1,
|
||||
AppScreen.wishlist => 2,
|
||||
AppScreen.settings => 3,
|
||||
};
|
||||
|
||||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
color: colorScheme.surface,
|
||||
border: Border(
|
||||
top: BorderSide(color: colorScheme.outlineVariant, width: 1),
|
||||
),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: colorScheme.shadow,
|
||||
blurRadius: 8,
|
||||
offset: const Offset(0, -2),
|
||||
),
|
||||
],
|
||||
),
|
||||
child: BottomNavigationBar(
|
||||
currentIndex: currentIndex,
|
||||
backgroundColor: Colors.transparent,
|
||||
elevation: 0,
|
||||
selectedItemColor: colorScheme.primary,
|
||||
unselectedItemColor: colorScheme.onSurface.withValues(alpha: 0.6),
|
||||
onTap: (index) {
|
||||
final screen = [
|
||||
AppScreen.library,
|
||||
AppScreen.categories,
|
||||
AppScreen.wishlist,
|
||||
AppScreen.settings,
|
||||
][index];
|
||||
context.read<NavigationBloc>().add(NavigateTo(screen));
|
||||
},
|
||||
items: const [
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.local_library),
|
||||
label: 'Библиотека',
|
||||
),
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.category),
|
||||
label: 'Категории',
|
||||
),
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.bookmark),
|
||||
label: 'Избранное',
|
||||
),
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.settings),
|
||||
label: 'Настройки',
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user