A comprehensive guide and documentation website for the Flutter Packages Suite - a collection of production-ready Flutter packages for modern app development.
- NavigationService: Singleton service for app-wide navigation
- Custom Transitions: Fade, slide, and custom page transitions
- Route Management: Elegant navigation with
sailTo,swapTo,freshStartTo
- Form Validation: Email, password, phone, credit card validation
- Custom Rules: Extensible validation system
- International Support: Multi-country phone and postal code validation
- Semantic Typography: Material Design 3 compliant text styles
- Responsive Text: Adaptive text sizing for different screen sizes
- Theme Integration: Dark/light theme support
- Breakpoint System: Mobile, tablet, desktop breakpoints
- Responsive Widgets: Adaptive containers, grids, and layouts
- Device Detection: Utilities for device type and orientation
- String Extensions: Validation, formatting, transformation utilities
- Widget Extensions: Padding, margin, decoration helpers
- Number Extensions: Spacing and sizing extensions
- App Sizes: Consistent spacing and sizing system
- Gap Widgets: Standardized spacing components
- Debug Tools: Enhanced debugging utilities
- Flutter SDK (>=3.10.0)
- Dart SDK (>=3.0.0)
- Web browser (for running the guide website)
-
Clone the repository: ```bash git clone https://github.com/noyon-360/flutx_core.git ```
-
Install dependencies: ```bash flutter pub get ```
-
Run the guide website: ```bash
flutter run -d chrome
flutter run ```
Add the packages to your `pubspec.yaml`:
```yaml dependencies: flutter: sdk: flutter
flutx_core: ^1.0.2 ```
The guide website includes:
- Overview of all packages
- Quick start guide
- Installation instructions
- NavigationService usage
- Custom transitions
- Route management examples
- Form validation examples
- Custom validator creation
- International validation
- Typography system overview
- Responsive text examples
- Theme integration
- Breakpoint system
- Responsive widgets
- Device detection utilities
- String manipulation
- Widget extensions
- Number utilities
- Spacing system
- Debug tools
- Helper utilities
- Live code demonstrations
- Copy-paste ready snippets
- Real-time preview
- Mobile-first approach
- Tablet and desktop optimized
- Adaptive navigation
- Material Design 3
- Dark/light theme support
- Smooth animations
- Sidebar navigation
- Search functionality
- Quick links
``` lib/ βββ core/ # Core packages β βββ navigation/ # Navigation system β βββ validators/ # Validation rules β βββ text/ # Text styles β βββ responsive/ # Responsive utilities β βββ extensions/ # Extension methods β βββ spacing/ # Spacing system β βββ theme/ # App theming β βββ utils/ # Utility functions βββ pages/ # Guide pages β βββ home_page.dart β βββ navigation_guide_page.dart β βββ validators_guide_page.dart β βββ text_styles_guide_page.dart β βββ responsive_guide_page.dart β βββ extensions_guide_page.dart β βββ utilities_guide_page.dart βββ widgets/ # Reusable widgets β βββ common/ # Common widgets β βββ layout/ # Layout widgets βββ main.dart # App entry point ```
```bash
flutter run -d chrome --web-port 8080
flutter run --debug ```
```bash
flutter build web --release
flutter build apk --release flutter build ios --release ```
- Create a new page in `lib/pages/`
- Add route in `main.dart`
- Update sidebar navigation in `lib/widgets/common/sidebar.dart`
- Add feature card in home page
Customize the app theme in `lib/core/theme/app_theme.dart`:
```dart static ThemeData get lightTheme { return ThemeData( useMaterial3: true, colorScheme: ColorScheme.fromSeed( seedColor: const Color(0xFF2563EB), // Change primary color brightness: Brightness.light, ), // ... other theme properties ); } ```
- Create package folder in `lib/core/`
- Add documentation page
- Update navigation
- Add examples and code snippets
The guide uses these breakpoints:
- Mobile: < 600px
- Tablet: 600px - 1024px
- Desktop: > 1024px
- Fork the repository
- Create a feature branch: `git checkout -b feature/new-package`
- Commit changes: `git commit -am 'Add new package'`
- Push to branch: `git push origin feature/new-package`
- Submit a Pull Request
- Follow Flutter/Dart style guidelines
- Add comprehensive documentation
- Include interactive examples
- Test on multiple screen sizes
- Update README if needed
This project is licensed under the MIT License - see the LICENSE file for details.
- Flutter team for the amazing framework
- Material Design team for design guidelines
- Open source community for inspiration
- π§ Email: [email protected]
Built with β€οΈ for the Flutter community