Initial commit: Penyerahan final Source code Tugas Akhir

This commit is contained in:
ferdiakhh
2025-07-10 19:15:14 +07:00
commit e1f2206b8a
687 changed files with 80132 additions and 0 deletions

17
lib/base_service.dart Normal file
View File

@ -0,0 +1,17 @@
import 'package:flutter_dotenv/flutter_dotenv.dart';
// Ganti baseUrl jadi ngambil dari file .env
String? baseUrl = dotenv.env['BASE_URL_API'];
const Map<String, String> baseHeader = {
'Content-Type': 'application/json',
'Accept': 'application/json',
};
Map<String, String> headerWithToken(String? token) {
return {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer $token',
};
}