penambahan flutter launcher icon
|
@ -18,7 +18,7 @@ const generateToken = (user) => {
|
|||
// Menambahkan user baru dengan hashing Argon2
|
||||
exports.register = async (req, res) => {
|
||||
try {
|
||||
const { name, email, password, alamat, nomorTelepon, role } = req.body;
|
||||
const { name, email, password, alamat, role } = req.body;
|
||||
|
||||
// Cek apakah email sudah terdaftar
|
||||
const existingUser = await User.findOne({ where: { email } });
|
||||
|
@ -32,7 +32,6 @@ exports.register = async (req, res) => {
|
|||
email,
|
||||
password: hashedPassword,
|
||||
alamat,
|
||||
nomorTelepon,
|
||||
role: 'user'
|
||||
});
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ const authController = require('../controller/authController');
|
|||
* - name
|
||||
* - email
|
||||
* - password
|
||||
* - nomorTelepon
|
||||
*
|
||||
* properties:
|
||||
* name:
|
||||
* type: string
|
||||
|
@ -36,9 +36,6 @@ const authController = require('../controller/authController');
|
|||
* password:
|
||||
* type: string
|
||||
* example: mypassword
|
||||
* nomorTelepon:
|
||||
* type: string
|
||||
* example: "08123456789"
|
||||
* alamat:
|
||||
* type: string
|
||||
* example: "london inggris"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<application
|
||||
android:label="frontend"
|
||||
android:name="${applicationName}"
|
||||
android:icon="@mipmap/ic_launcher">
|
||||
android:icon="@mipmap/launcher_icon">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:exported="true"
|
||||
|
|
After Width: | Height: | Size: 8.7 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 53 KiB |
After Width: | Height: | Size: 611 KiB |
|
@ -427,7 +427,7 @@
|
|||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
||||
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
|
@ -484,7 +484,7 @@
|
|||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
||||
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
|
|
|
@ -1,122 +1 @@
|
|||
{
|
||||
"images" : [
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-20x20@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-20x20@3x.png",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-29x29@1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-29x29@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-29x29@3x.png",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-40x40@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-40x40@3x.png",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"size" : "60x60",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-60x60@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "60x60",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-60x60@3x.png",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-20x20@1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-20x20@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-29x29@1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-29x29@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-40x40@1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-40x40@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "76x76",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-76x76@1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "76x76",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-76x76@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "83.5x83.5",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-83.5x83.5@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "1024x1024",
|
||||
"idiom" : "ios-marketing",
|
||||
"filename" : "Icon-App-1024x1024@1x.png",
|
||||
"scale" : "1x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
||||
{"images":[{"size":"20x20","idiom":"iphone","filename":"Icon-App-20x20@2x.png","scale":"2x"},{"size":"20x20","idiom":"iphone","filename":"Icon-App-20x20@3x.png","scale":"3x"},{"size":"29x29","idiom":"iphone","filename":"Icon-App-29x29@1x.png","scale":"1x"},{"size":"29x29","idiom":"iphone","filename":"Icon-App-29x29@2x.png","scale":"2x"},{"size":"29x29","idiom":"iphone","filename":"Icon-App-29x29@3x.png","scale":"3x"},{"size":"40x40","idiom":"iphone","filename":"Icon-App-40x40@2x.png","scale":"2x"},{"size":"40x40","idiom":"iphone","filename":"Icon-App-40x40@3x.png","scale":"3x"},{"size":"57x57","idiom":"iphone","filename":"Icon-App-57x57@1x.png","scale":"1x"},{"size":"57x57","idiom":"iphone","filename":"Icon-App-57x57@2x.png","scale":"2x"},{"size":"60x60","idiom":"iphone","filename":"Icon-App-60x60@2x.png","scale":"2x"},{"size":"60x60","idiom":"iphone","filename":"Icon-App-60x60@3x.png","scale":"3x"},{"size":"20x20","idiom":"ipad","filename":"Icon-App-20x20@1x.png","scale":"1x"},{"size":"20x20","idiom":"ipad","filename":"Icon-App-20x20@2x.png","scale":"2x"},{"size":"29x29","idiom":"ipad","filename":"Icon-App-29x29@1x.png","scale":"1x"},{"size":"29x29","idiom":"ipad","filename":"Icon-App-29x29@2x.png","scale":"2x"},{"size":"40x40","idiom":"ipad","filename":"Icon-App-40x40@1x.png","scale":"1x"},{"size":"40x40","idiom":"ipad","filename":"Icon-App-40x40@2x.png","scale":"2x"},{"size":"50x50","idiom":"ipad","filename":"Icon-App-50x50@1x.png","scale":"1x"},{"size":"50x50","idiom":"ipad","filename":"Icon-App-50x50@2x.png","scale":"2x"},{"size":"72x72","idiom":"ipad","filename":"Icon-App-72x72@1x.png","scale":"1x"},{"size":"72x72","idiom":"ipad","filename":"Icon-App-72x72@2x.png","scale":"2x"},{"size":"76x76","idiom":"ipad","filename":"Icon-App-76x76@1x.png","scale":"1x"},{"size":"76x76","idiom":"ipad","filename":"Icon-App-76x76@2x.png","scale":"2x"},{"size":"83.5x83.5","idiom":"ipad","filename":"Icon-App-83.5x83.5@2x.png","scale":"2x"},{"size":"1024x1024","idiom":"ios-marketing","filename":"Icon-App-1024x1024@1x.png","scale":"1x"}],"info":{"version":1,"author":"xcode"}}
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 973 KiB |
Before Width: | Height: | Size: 295 B After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 406 B After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 450 B After Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 282 B After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 462 B After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 704 B After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 406 B After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 586 B After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 862 B After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 862 B After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 8.7 KiB |
After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 762 B After Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 40 KiB |
|
@ -1,5 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:frontend/api_services/api_services.dart';
|
||||
import 'package:SIBAYAM/api_services/api_services.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
|
||||
class AdminHistoriPage extends StatefulWidget {
|
||||
|
|
|
@ -6,8 +6,8 @@ import 'gejala_page.dart';
|
|||
import 'rule_page.dart';
|
||||
import 'user_list_page.dart';
|
||||
import 'admin_histori_page.dart';
|
||||
import 'package:frontend/api_services/api_services.dart';
|
||||
import 'package:frontend/user/login_page.dart';
|
||||
import 'package:SIBAYAM/api_services/api_services.dart';
|
||||
import 'package:SIBAYAM/user/login_page.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
||||
class AdminPage extends StatefulWidget {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:frontend/api_services/api_services.dart';
|
||||
import 'package:SIBAYAM/api_services/api_services.dart';
|
||||
import 'image_utilities.dart';
|
||||
import 'dart:io';
|
||||
import 'dart:typed_data';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:frontend/api_services/api_services.dart';
|
||||
import 'package:SIBAYAM/api_services/api_services.dart';
|
||||
import 'dart:io';
|
||||
import 'dart:typed_data';
|
||||
import 'package:image_picker/image_picker.dart';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:frontend/api_services/api_services.dart';
|
||||
import 'package:SIBAYAM/api_services/api_services.dart';
|
||||
import 'package:http/http.dart' as http;
|
||||
|
||||
class EditRulePage extends StatefulWidget {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:frontend/api_services/api_services.dart'; // Pastikan file ini sesuai
|
||||
import 'package:SIBAYAM/api_services/api_services.dart'; // Pastikan file ini sesuai
|
||||
|
||||
class GejalaPage extends StatefulWidget {
|
||||
@override
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:frontend/api_services/api_services.dart';
|
||||
import 'package:SIBAYAM/api_services/api_services.dart';
|
||||
import 'tambah_hama_page.dart';
|
||||
import 'edit_hama_page.dart';
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:frontend/api_services/api_services.dart'; // Sesuaikan dengan path import Anda
|
||||
import 'package:SIBAYAM/api_services/api_services.dart'; // Sesuaikan dengan path import Anda
|
||||
|
||||
class ImageUtilities {
|
||||
static Widget buildHamaImage(int id, {double? width, double? height}) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:frontend/api_services/api_services.dart'; // Sesuaikan dengan path import Anda
|
||||
import 'package:SIBAYAM/api_services/api_services.dart'; // Sesuaikan dengan path import Anda
|
||||
|
||||
class ImageUtilitiesPenyakit {
|
||||
static Widget buildPenyakitImage(int id, {double? width, double? height}) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:frontend/admin/edit_penyakit_page.dart';
|
||||
import 'package:frontend/api_services/api_services.dart';
|
||||
import 'package:SIBAYAM/admin/edit_penyakit_page.dart';
|
||||
import 'package:SIBAYAM/api_services/api_services.dart';
|
||||
import 'tambah_penyakit_page.dart';
|
||||
import 'edit_penyakit_page.dart';
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:frontend/admin/edit_rule_page.dart';
|
||||
import 'package:SIBAYAM/admin/edit_rule_page.dart';
|
||||
import 'package:http/http.dart' as http;
|
||||
import 'package:frontend/api_services/api_services.dart';
|
||||
import 'package:SIBAYAM/api_services/api_services.dart';
|
||||
import 'tambah_rule_page.dart';
|
||||
import 'edit_hama_page.dart';
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:frontend/api_services/api_services.dart';
|
||||
import 'package:SIBAYAM/api_services/api_services.dart';
|
||||
import 'package:image_picker/image_picker.dart';
|
||||
import 'dart:io'; // untuk File
|
||||
import 'package:image_picker/image_picker.dart'; // untuk ImagePicker & ImageSource
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:frontend/api_services/api_services.dart';
|
||||
import 'package:SIBAYAM/api_services/api_services.dart';
|
||||
import 'package:image_picker/image_picker.dart';
|
||||
import 'dart:io'; // untuk File
|
||||
import 'package:image_picker/image_picker.dart'; // untuk ImagePicker & ImageSource
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:frontend/api_services/api_services.dart';
|
||||
import 'package:SIBAYAM/api_services/api_services.dart';
|
||||
import 'package:http/http.dart' as http;
|
||||
|
||||
class TambahRulePage extends StatefulWidget {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:frontend/api_services/api_services.dart';
|
||||
import 'package:SIBAYAM/api_services/api_services.dart';
|
||||
|
||||
class UserListPage extends StatefulWidget {
|
||||
@override
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
import 'package:frontend/user/home_page.dart';
|
||||
import 'package:frontend/admin/admin_page.dart';
|
||||
import 'package:frontend/user/before_login.dart';
|
||||
import 'package:SIBAYAM/user/home_page.dart';
|
||||
import 'package:SIBAYAM/admin/admin_page.dart';
|
||||
import 'package:SIBAYAM/user/before_login.dart';
|
||||
|
||||
void main() {
|
||||
runApp(MyApp());
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:frontend/api_services/api_services.dart';
|
||||
import 'package:SIBAYAM/api_services/api_services.dart';
|
||||
import 'dart:typed_data';
|
||||
|
||||
class DetailHamaPage extends StatefulWidget {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:frontend/api_services/api_services.dart';
|
||||
import 'package:SIBAYAM/api_services/api_services.dart';
|
||||
import 'dart:typed_data';
|
||||
|
||||
class DetailPenyakitPage extends StatefulWidget {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:frontend/api_services/api_services.dart';
|
||||
import 'package:SIBAYAM/api_services/api_services.dart';
|
||||
import 'dart:typed_data';
|
||||
|
||||
class DetailRiwayatPage extends StatelessWidget {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'hasil_diagnosa_page.dart';
|
||||
import 'package:frontend/api_services/api_services.dart';
|
||||
import 'package:SIBAYAM/api_services/api_services.dart';
|
||||
|
||||
class DiagnosaPage extends StatefulWidget {
|
||||
@override
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:frontend/api_services/api_services.dart';
|
||||
import 'package:SIBAYAM/api_services/api_services.dart';
|
||||
|
||||
class ForgotPasswordPage extends StatefulWidget {
|
||||
@override
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'detail_hama_page.dart';
|
||||
import 'package:frontend/api_services/api_services.dart';
|
||||
import 'package:SIBAYAM/api_services/api_services.dart';
|
||||
|
||||
class HamaPage extends StatefulWidget {
|
||||
@override
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:frontend/user/home_page.dart';
|
||||
import 'package:SIBAYAM/user/home_page.dart';
|
||||
import 'dart:convert';
|
||||
import 'package:http/http.dart' as http;
|
||||
import 'package:frontend/api_services/api_services.dart';
|
||||
import 'package:SIBAYAM/api_services/api_services.dart';
|
||||
import 'dart:typed_data';
|
||||
|
||||
class HasilDiagnosaPage extends StatefulWidget {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:frontend/user/profile_pakar_page.dart';
|
||||
import 'package:SIBAYAM/user/profile_pakar_page.dart';
|
||||
import 'diagnosa_page.dart';
|
||||
import 'riwayat_diagnosa_page.dart';
|
||||
import 'profile_page.dart';
|
||||
|
|
|
@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:http/http.dart' as http;
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
import 'home_page.dart';
|
||||
import 'package:frontend/admin/admin_page.dart';
|
||||
import 'package:SIBAYAM/admin/admin_page.dart';
|
||||
import 'register_page.dart';
|
||||
import 'forgot_password_page.dart';
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'detail_penyakit_page.dart';
|
||||
import 'package:frontend/api_services/api_services.dart';
|
||||
import 'package:SIBAYAM/api_services/api_services.dart';
|
||||
|
||||
class PenyakitPage extends StatefulWidget {
|
||||
@override
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'login_page.dart';
|
||||
import 'package:frontend/api_services/api_services.dart';
|
||||
import 'package:SIBAYAM/api_services/api_services.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
import 'dart:convert';
|
||||
import 'package:http/http.dart' as http;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:frontend/api_services/api_services.dart';
|
||||
import 'package:SIBAYAM/api_services/api_services.dart';
|
||||
|
||||
// Halaman Pendaftaran
|
||||
class RegisterPage extends StatefulWidget {
|
||||
|
@ -81,8 +81,7 @@ class _RegisterPageState extends State<RegisterPage> {
|
|||
if (nameController.text.isEmpty ||
|
||||
emailController.text.isEmpty ||
|
||||
passwordController.text.isEmpty ||
|
||||
alamatController.text.isEmpty ||
|
||||
nomorHpController.text.isEmpty) {
|
||||
alamatController.text.isEmpty) {
|
||||
_showErrorDialog('Semua field harus diisi');
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:frontend/api_services/api_services.dart';
|
||||
import 'package:SIBAYAM/api_services/api_services.dart';
|
||||
import 'detail_riwayat_page.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
import 'dart:convert';
|
||||
|
|
|
@ -1,6 +1,22 @@
|
|||
# Generated by pub
|
||||
# See https://dart.dev/tools/pub/glossary#lockfile
|
||||
packages:
|
||||
archive:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: archive
|
||||
sha256: "2fde1607386ab523f7a36bb3e7edb43bd58e6edaf2ffb29d8a6d578b297fdbbd"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "4.0.7"
|
||||
args:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: args
|
||||
sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.7.0"
|
||||
async:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -25,6 +41,22 @@ packages:
|
|||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.4.0"
|
||||
checked_yaml:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: checked_yaml
|
||||
sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.0.3"
|
||||
cli_util:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: cli_util
|
||||
sha256: ff6785f7e9e3c38ac98b2fb035701789de90154024a75b6cb926445e83197d1c
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.4.2"
|
||||
clock:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -49,6 +81,14 @@ packages:
|
|||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.3.4+2"
|
||||
crypto:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: crypto
|
||||
sha256: "1e445881f28f22d6140f181e07737b22f1e099a5e1ff94b0af2f9e4a463f4855"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "3.0.6"
|
||||
cupertino_icons:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
@ -118,14 +158,14 @@ packages:
|
|||
description: flutter
|
||||
source: sdk
|
||||
version: "0.0.0"
|
||||
flutter_lints:
|
||||
dependency: "direct dev"
|
||||
flutter_launcher_icons:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: flutter_lints
|
||||
sha256: "5398f14efa795ffb7a33e9b6a08798b26a180edac4ad7db3f231e40f82ce11e1"
|
||||
name: flutter_launcher_icons
|
||||
sha256: bfa04787c85d80ecb3f8777bde5fc10c3de809240c48fa061a2c2bf15ea5211c
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "5.0.0"
|
||||
version: "0.14.3"
|
||||
flutter_plugin_android_lifecycle:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -160,6 +200,14 @@ packages:
|
|||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "4.1.2"
|
||||
image:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: image
|
||||
sha256: "4e973fcf4caae1a4be2fa0a13157aa38a8f9cb049db6529aa00b4d71abc4d928"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "4.5.4"
|
||||
image_picker:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
@ -232,6 +280,14 @@ packages:
|
|||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.18.1"
|
||||
json_annotation:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: json_annotation
|
||||
sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "4.9.0"
|
||||
leak_tracker:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -256,14 +312,6 @@ packages:
|
|||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "3.0.1"
|
||||
lints:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: lints
|
||||
sha256: c35bb79562d980e9a453fc715854e1ed39e24e7d0297a880ef54e17f9874a9d7
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "5.1.1"
|
||||
matcher:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -328,6 +376,14 @@ packages:
|
|||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.3.0"
|
||||
petitparser:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: petitparser
|
||||
sha256: "07c8f0b1913bcde1ff0d26e57ace2f3012ccbf2b204e070290dad3bb22797646"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "6.1.0"
|
||||
platform:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -344,6 +400,14 @@ packages:
|
|||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.1.8"
|
||||
posix:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: posix
|
||||
sha256: f0d7856b6ca1887cfa6d1d394056a296ae33489db914e365e2044fdada449e62
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "6.0.2"
|
||||
shared_preferences:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
@ -493,6 +557,22 @@ packages:
|
|||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.1.0"
|
||||
xml:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: xml
|
||||
sha256: b015a8ad1c488f66851d762d3090a21c600e479dc75e68328c52774040cf9226
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "6.5.0"
|
||||
yaml:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: yaml
|
||||
sha256: b9da305ac7c39faa3f030eccd175340f968459dae4af175130b3fc47e40d76ce
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "3.1.3"
|
||||
sdks:
|
||||
dart: ">=3.7.2 <4.0.0"
|
||||
flutter: ">=3.27.0"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name: frontend
|
||||
name: SIBAYAM
|
||||
description: "A new Flutter project."
|
||||
# The following line prevents the package from being accidentally published to
|
||||
# pub.dev using `flutter pub publish`. This is preferred for private packages.
|
||||
|
@ -30,6 +30,7 @@ environment:
|
|||
dependencies:
|
||||
flutter:
|
||||
sdk: flutter
|
||||
flutter_launcher_icons: ^0.14.0
|
||||
|
||||
|
||||
# The following adds the Cupertino Icons font to your application.
|
||||
|
@ -44,6 +45,12 @@ dev_dependencies:
|
|||
flutter_test:
|
||||
sdk: flutter
|
||||
|
||||
flutter_launcher_icons:
|
||||
android: "launcher_icon"
|
||||
ios: true
|
||||
image_path: "assets/images/icon_sibayam.png"
|
||||
min_sdk_android: 21
|
||||
|
||||
# The "flutter_lints" package below contains a set of recommended lints to
|
||||
# encourage good coding practices. The lint set provided by the package is
|
||||
# activated in the `analysis_options.yaml` file located at the root of your
|
||||
|
|