| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Aplikasi CMS Mobile menggunakan Flutter dengan arsitektur MVVM yang terkoneksi dengan Laravel API.
lib/
├── main.dart # Entry point
├── core/ # Core functionality
│ ├── config/ # API configuration
│ └── routes/ # Routing & navigation
├── data/ # Data layer
│ ├── models/ # Data models (Category, Post, User, Pagination)
│ ├── services/ # API services
│ └── viewmodels/ # State management (Business logic)
└── ui/ # UI layer
├── pages/ # Screens/Pages
├── widgets/ # Reusable components
└── animations/ # Animation widgets
git clone <repository-url>
cd folio_mobileflutter pub getEdit file lib/core/config/api_config.dart:
class ApiConfig {
// Ganti dengan IP address komputer/server Anda
static const String baseUrl = 'http://192.168.0.3:8000/api/v1';
static const String healthUrl = 'http://192.168.0.3:8000/api/health';
}Tips mengatur URL:
flutter rundependencies:
flutter:
sdk: flutter
http: ^1.1.0 # HTTP client untuk API calls
provider: ^6.1.1 # State management
intl: ^0.19.0 # Date formattingAplikasi ini menggunakan MVVM (Model-View-ViewModel) pattern:
Menggunakan Provider dengan ChangeNotifier:
Named routes dengan helper methods di AppRoutes:
AppRoutes.navigateToPostDetail(context, post);
AppRoutes.navigateToCategoryPosts(context, category);// From main.dart
import 'data/viewmodels/post_viewmodel.dart';
import 'core/routes/app_routes.dart';
// From pages (ui/pages/)
import '../../data/viewmodels/post_viewmodel.dart';
import '../widgets/post_list_item.dart';
// From widgets (ui/widgets/)
import '../../data/models/post.dart';# Run tests
flutter test
# Run with coverage
flutter test --coverage# Build APK (Android)
flutter build apk --release
# Build App Bundle (Android)
flutter build appbundle --release
# Build IPA (iOS)
flutter build ipa --releaseThis project is licensed under the MIT License.
Your Name / Team Name
| Back | FazBrowse Home | New Git URL |