- Flutter SDK
- Dart SDK
- Android Studio หรือ VS Code
- Emulator หรือโทรศัพท์ Android/iOS
- ติดตั้ง Flutter และ Dart SDK จาก Flutter Installation Guide
- รันคำสั่ง:
flutter pub get
- ใช้คำสั่งนี้เพื่อรันแอปพลิเคชัน:
flutter run
- สร้างไฟล์ APK (Android):
flutter build apk
- สร้างไฟล์ IPA (iOS):
flutter build ios
lib/
├── common_widgets/ # วิดเจ็ตที่ใช้ซ้ำได้
├── features/
│ ├── auth/ # การจัดการ Authentication
│ │ ├── models/ # โมเดลสำหรับ auth
│ │ ├── providers/ # State management ของ auth
│ │ │ └── auth_provider.dart
│ │ ├── screens/ # หน้าจอที่เกี่ยวข้องกับ auth
│ │ │ ├── forgot_password_screen.dart
│ │ │ ├── login_screen.dart
│ │ │ ├── register_screen.dart
│ │ │ └── root_screen.dart
│ │ └── widgets/ # วิดเจ็ตย่อยของ auth
│ ├── home/ # ส่วน Home ของแอป
│ ├── screens/ # หน้าจอของ Home
│ │ ├── add_post_screen.dart
│ │ ├── home_content_screen.dart
│ │ ├── home_screen.dart
│ │ ├── notifications_screen.dart
│ │ ├── profile_screen.dart
│ │ └── search_screen.dart
│ └── widgets/ # วิดเจ็ตย่อยของ Home
│ └── user_profile_screen.dart
├── routes/ # การจัดการเส้นทางของแอป
├── services/ # การเชื่อมต่อ API
│ ├── auth_service.dart # จัดการ API สำหรับ Auth
│ ├── post_service.dart # จัดการ API สำหรับโพสต์
│ ├── test.dart # สำหรับการทดสอบ
│ └── user.dart # จัดการ API สำหรับผู้ใช้
└── main.dart # Entry point ของแอป
- Authentication
- Login, Register, และ Forgot Password
- Home
- เพิ่มโพสต์, ดูโพสต์, การแจ้งเตือน และค้นหา
- User Profile
- ดูโปรไฟล์และแก้ไขข้อมูลผู้ใช้
- AuthService
- การจัดการ Authentication API
- PostService
- การสร้างและดึงโพสต์
- User
- การดึงข้อมูลผู้ใช้
- Fork โครงการนี้
- สร้าง Branch ใหม่ (
git checkout -b feature/your-feature) - Commit การเปลี่ยนแปลง (
git commit -m "เพิ่มฟีเจอร์ใหม่") - Push Branch (
git push origin feature/your-feature) - สร้าง Pull Request