Commit 9ede5b06 authored by Dio Maulana's avatar Dio Maulana

change logo ravintola for demo

parent b9f8d1a9
# excelso_attendance # ravintola_attendance
A new Flutter project. A new Flutter project.
......
...@@ -44,7 +44,7 @@ android { ...@@ -44,7 +44,7 @@ android {
defaultConfig { defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.excelso_attendance" applicationId "com.example.ravintola_attendance"
// You can update the following values to match your application needs. // You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
minSdkVersion 21 minSdkVersion 21
......
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.excelso_attendance"> package="com.example.ravintola_attendance">
<!-- The INTERNET permission is required for development. Specifically, <!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc. to allow setting breakpoints, to provide hot reload, etc.
......
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.excelso_attendance"> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.ravintola_attendance">
<uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
......
package com.example.excelso_attendance package com.example.ravintola_attendance
import io.flutter.embedding.android.FlutterActivity import io.flutter.embedding.android.FlutterActivity
......
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.excelso_attendance"> package="com.example.ravintola_attendance">
<!-- The INTERNET permission is required for development. Specifically, <!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc. to allow setting breakpoints, to provide hot reload, etc.
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"base_url": "https://hibiscus-dev.ravku.com/", "base_url": "https://hibiscus-dev.ravku.com/",
"end_point": "rav/attendance/", "end_point": "rav/attendance/",
"brand": "EXC", "brand": "EXC",
"title": "Excelso Attendance", "title": "Ravintola Attendance - Demo",
"company": "PT. Excelso Multi Rasa", "company": "PT. Cipta Solusi Datarindo",
"debug": true "debug": false
} }
\ No newline at end of file
flutter_native_splash: flutter_native_splash:
color: "#ffffff" color: "#ffffff"
image: assets/images/excelso_logo_green.png image: assets/images/ravintola.png
# branding: assets/images/excelso_logo_green.png # branding: assets/images/excelso_logo_green.png
color_dark: "#ffffff" color_dark: "#ffffff"
image_dark: assets/images/excelso_logo_green.png image_dark: assets/images/ravintola.png
# branding_dark: assets/images/excelso_logo_green.png # branding_dark: assets/images/excelso_logo_green.png
android_12: android_12:
image: assets/images/excelso_logo_green.png image: assets/images/ravintola.png
icon_background_color: "#ffffff" icon_background_color: "#ffffff"
image_dark: assets/images/excelso_logo_green.png image_dark: assets/images/ravintola.png
icon_background_color_dark: "#ffffff" icon_background_color_dark: "#ffffff"
web: true web: true
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</scene> </scene>
</scenes> </scenes>
<resources> <resources>
<image name="LaunchImage" width="209" height="80"/> <image name="LaunchImage" width="242" height="104"/>
<image name="LaunchBackground" width="1" height="1"/> <image name="LaunchBackground" width="1" height="1"/>
</resources> </resources>
</document> </document>
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<key>CFBundleInfoDictionaryVersion</key> <key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string> <string>6.0</string>
<key>CFBundleName</key> <key>CFBundleName</key>
<string>excelso_attendance</string> <string>ravintola_attendance</string>
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
......
import 'dart:convert'; import 'dart:convert';
import 'package:device_info_plus/device_info_plus.dart'; import 'package:device_info_plus/device_info_plus.dart';
import 'package:excelso_attendance/api/base_api.dart'; import 'package:ravintola_attendance/api/base_api.dart';
import 'package:excelso_attendance/helper/logger.dart'; import 'package:ravintola_attendance/helper/logger.dart';
import 'package:excelso_attendance/helper/pref.dart'; import 'package:ravintola_attendance/helper/pref.dart';
import 'package:excelso_attendance/main.dart'; import 'package:ravintola_attendance/main.dart';
import 'package:excelso_attendance/models/absent.dart'; import 'package:ravintola_attendance/models/absent.dart';
import 'package:excelso_attendance/models/branch.dart'; import 'package:ravintola_attendance/models/branch.dart';
import 'package:excelso_attendance/models/profile.dart'; import 'package:ravintola_attendance/models/profile.dart';
import 'package:excelso_attendance/models/shift.dart'; import 'package:ravintola_attendance/models/shift.dart';
import 'package:excelso_attendance/resource/constanta_string.dart'; import 'package:ravintola_attendance/resource/constanta_string.dart';
import 'package:excelso_attendance/resource/strings.dart'; import 'package:ravintola_attendance/resource/strings.dart';
import 'package:get_ip_address/get_ip_address.dart'; import 'package:get_ip_address/get_ip_address.dart';
import 'package:http/http.dart' as http; import 'package:http/http.dart' as http;
import 'package:flutter/foundation.dart' show kIsWeb; import 'package:flutter/foundation.dart' show kIsWeb;
...@@ -86,7 +86,12 @@ class Api { ...@@ -86,7 +86,12 @@ class Api {
String bodies = jsonEncode(data); String bodies = jsonEncode(data);
// dynamic jsonObject = // dynamic jsonObject =
// await httpRequest(typePost, apiUrl, "getShiftList", bodies: bodies); // await httpRequest(typePost, apiUrl, "getShiftList", bodies: bodies);
HttpResponseApi apiResult = await ConstantApi.httpRequest(typePost, apiUrl, "getShiftList", bodies: bodies,); HttpResponseApi apiResult = await ConstantApi.httpRequest(
typePost,
apiUrl,
"getShiftList",
bodies: bodies,
);
if (apiResult.succes == false) { if (apiResult.succes == false) {
return apiResult.apiResponse!; return apiResult.apiResponse!;
} else { } else {
...@@ -134,8 +139,13 @@ class Api { ...@@ -134,8 +139,13 @@ class Api {
String bodies = jsonEncode(data); String bodies = jsonEncode(data);
// dynamic jsonObject = // dynamic jsonObject =
// await httpRequest(typePost, apiUrl, "getUserProfile", bodies: bodies); // await httpRequest(typePost, apiUrl, "getUserProfile", bodies: bodies);
HttpResponseApi apiResult = await ConstantApi.httpRequest(typePost, apiUrl, "getUserProfile", bodies: bodies,); HttpResponseApi apiResult = await ConstantApi.httpRequest(
typePost,
apiUrl,
"getUserProfile",
bodies: bodies,
);
if (apiResult.succes == false) { if (apiResult.succes == false) {
return apiResult.apiResponse!; return apiResult.apiResponse!;
} else { } else {
...@@ -188,8 +198,13 @@ class Api { ...@@ -188,8 +198,13 @@ class Api {
String bodies = jsonEncode(data); String bodies = jsonEncode(data);
// dynamic jsonObject = // dynamic jsonObject =
// await httpRequest(typePost, apiUrl, "shiftIn", bodies: bodies); // await httpRequest(typePost, apiUrl, "shiftIn", bodies: bodies);
HttpResponseApi apiResult = await ConstantApi.httpRequest(typePost, apiUrl, "shiftIn", bodies: bodies,); HttpResponseApi apiResult = await ConstantApi.httpRequest(
typePost,
apiUrl,
"shiftIn",
bodies: bodies,
);
if (apiResult.succes == false) { if (apiResult.succes == false) {
return apiResult.apiResponse!; return apiResult.apiResponse!;
} else { } else {
...@@ -257,9 +272,13 @@ class Api { ...@@ -257,9 +272,13 @@ class Api {
String bodies = jsonEncode(data); String bodies = jsonEncode(data);
// dynamic jsonObject = // dynamic jsonObject =
// await httpRequest(typePost, apiUrl, "shiftOut", bodies: bodies); // await httpRequest(typePost, apiUrl, "shiftOut", bodies: bodies);
HttpResponseApi apiResult = await ConstantApi.httpRequest(
HttpResponseApi apiResult = await ConstantApi.httpRequest(typePost, apiUrl, "shiftIn", bodies: bodies,); typePost,
apiUrl,
"shiftIn",
bodies: bodies,
);
if (apiResult.succes == false) { if (apiResult.succes == false) {
return ApiResponse(error: true, msg: Strings.cantConnectToServer); return ApiResponse(error: true, msg: Strings.cantConnectToServer);
} else { } else {
......
import 'dart:async'; import 'dart:async';
import 'dart:convert'; import 'dart:convert';
import 'dart:io'; import 'dart:io';
import 'package:excelso_attendance/main.dart'; import 'package:ravintola_attendance/main.dart';
import 'package:excelso_attendance/resource/strings.dart'; import 'package:ravintola_attendance/resource/strings.dart';
import 'package:http/http.dart' as http; import 'package:http/http.dart' as http;
int typeGet = 1; int typeGet = 1;
...@@ -16,7 +16,6 @@ class ConstantApi { ...@@ -16,7 +16,6 @@ class ConstantApi {
{String? bodies = ''}) async { {String? bodies = ''}) async {
http.Response apiResult; http.Response apiResult;
try { try {
if (typeRequest == typePost) { if (typeRequest == typePost) {
apiResult = await http apiResult = await http
.post(Uri.parse(apiUrl), .post(Uri.parse(apiUrl),
...@@ -150,22 +149,26 @@ class ConstantApi { ...@@ -150,22 +149,26 @@ class ConstantApi {
msg: "${Strings.cantConnectToServer}, $e", msg: "${Strings.cantConnectToServer}, $e",
), ),
); );
} on HttpException catch(e) { } on HttpException catch (e) {
return HttpResponseApi( return HttpResponseApi(
succes: false, succes: false,
msg: "${Strings.clientError}, Terjadi kendala pada koneksi http, silakan cek kembali koneksi internet anda. Err: ${e.message}", msg:
"${Strings.clientError}, Terjadi kendala pada koneksi http, silakan cek kembali koneksi internet anda. Err: ${e.message}",
apiResponse: ApiResponse( apiResponse: ApiResponse(
error: true, error: true,
msg: "${Strings.clientError}, Terjadi kendala pada koneksi http, silakan cek kembali koneksi internet anda. Err: ${e.message}", msg:
"${Strings.clientError}, Terjadi kendala pada koneksi http, silakan cek kembali koneksi internet anda. Err: ${e.message}",
), ),
); );
} on http.ClientException catch (e) { } on http.ClientException catch (e) {
return HttpResponseApi( return HttpResponseApi(
succes: false, succes: false,
msg: "${Strings.clientError}, Terjadi kendala pada koneksi, silakan cek kembali koneksi internet anda. Err: ${e.message}", msg:
"${Strings.clientError}, Terjadi kendala pada koneksi, silakan cek kembali koneksi internet anda. Err: ${e.message}",
apiResponse: ApiResponse( apiResponse: ApiResponse(
error: true, error: true,
msg: "${Strings.clientError}, Terjadi kendala pada koneksi, silakan cek kembali koneksi internet anda. Err: ${e.message}", msg:
"${Strings.clientError}, Terjadi kendala pada koneksi, silakan cek kembali koneksi internet anda. Err: ${e.message}",
), ),
); );
} catch (e) { } catch (e) {
...@@ -210,4 +213,4 @@ class ApiResponse { ...@@ -210,4 +213,4 @@ class ApiResponse {
this.data, this.data,
this.code = "", this.code = "",
}); });
} }
\ No newline at end of file
import 'package:excelso_attendance/models/absent.dart'; import 'package:ravintola_attendance/models/absent.dart';
import 'package:excelso_attendance/models/branch.dart'; import 'package:ravintola_attendance/models/branch.dart';
import 'package:excelso_attendance/models/profile.dart'; import 'package:ravintola_attendance/models/profile.dart';
import 'package:excelso_attendance/models/shift.dart'; import 'package:ravintola_attendance/models/shift.dart';
class AbsentCameraArguments { class AbsentCameraArguments {
final bool isIn; final bool isIn;
......
import 'package:excelso_attendance/resource/colors.dart'; import 'package:ravintola_attendance/resource/colors.dart';
import 'package:excelso_attendance/resource/style.dart'; import 'package:ravintola_attendance/resource/style.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class CustomButton extends StatelessWidget { class CustomButton extends StatelessWidget {
......
import 'package:excelso_attendance/helper/component/text_field.dart'; import 'package:ravintola_attendance/helper/component/text_field.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class PasswordInput extends StatefulWidget { class PasswordInput extends StatefulWidget {
......
import 'package:excelso_attendance/resource/colors.dart'; import 'package:ravintola_attendance/resource/colors.dart';
import 'package:excelso_attendance/resource/size.dart'; import 'package:ravintola_attendance/resource/size.dart';
import 'package:excelso_attendance/resource/style.dart'; import 'package:ravintola_attendance/resource/style.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class InputTextField extends StatelessWidget { class InputTextField extends StatelessWidget {
......
import 'package:excelso_attendance/helper/component/button.dart'; import 'package:ravintola_attendance/helper/component/button.dart';
import 'package:excelso_attendance/resource/font.dart'; import 'package:ravintola_attendance/resource/font.dart';
import 'package:excelso_attendance/resource/style.dart'; import 'package:ravintola_attendance/resource/style.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
Future<dynamic> modalDialogGlobal({ Future<dynamic> modalDialogGlobal({
......
import 'package:excelso_attendance/main.dart'; import 'package:ravintola_attendance/main.dart';
const String _latitude = 'laU'; const String _latitude = 'laU';
const String _longitude = 'loU'; const String _longitude = 'loU';
......
// ignore_for_file: must_be_immutable // ignore_for_file: must_be_immutable
import 'package:excelso_attendance/resource/colors.dart'; import 'package:ravintola_attendance/resource/colors.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class ScreenResponsive extends StatefulWidget { class ScreenResponsive extends StatefulWidget {
......
import 'dart:convert'; import 'dart:convert';
import 'package:excelso_attendance/resource/routes.dart'; import 'package:ravintola_attendance/resource/routes.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart'; import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:shared_preferences/shared_preferences.dart'; import 'package:shared_preferences/shared_preferences.dart';
......
...@@ -3,29 +3,29 @@ ...@@ -3,29 +3,29 @@
import 'dart:async'; import 'dart:async';
import 'dart:convert'; import 'dart:convert';
import 'dart:io'; import 'dart:io';
import 'package:excelso_attendance/api/api.dart'; import 'package:ravintola_attendance/api/api.dart';
import 'package:excelso_attendance/api/base_api.dart'; import 'package:ravintola_attendance/api/base_api.dart';
import 'package:excelso_attendance/helper/arguments/error_args.dart'; import 'package:ravintola_attendance/helper/arguments/error_args.dart';
import 'package:excelso_attendance/helper/arguments/route_args.dart'; import 'package:ravintola_attendance/helper/arguments/route_args.dart';
import 'package:excelso_attendance/helper/modal_dialog.dart'; import 'package:ravintola_attendance/helper/modal_dialog.dart';
import 'package:excelso_attendance/helper/widget_responsive.dart'; import 'package:ravintola_attendance/helper/widget_responsive.dart';
import 'package:excelso_attendance/main.dart'; import 'package:ravintola_attendance/main.dart';
import 'package:excelso_attendance/models/absent.dart'; import 'package:ravintola_attendance/models/absent.dart';
import 'package:excelso_attendance/models/branch.dart'; import 'package:ravintola_attendance/models/branch.dart';
import 'package:excelso_attendance/models/profile.dart'; import 'package:ravintola_attendance/models/profile.dart';
import 'package:excelso_attendance/models/shift.dart'; import 'package:ravintola_attendance/models/shift.dart';
import 'package:excelso_attendance/resource/routes.dart'; import 'package:ravintola_attendance/resource/routes.dart';
import 'package:excelso_attendance/resource/strings.dart'; import 'package:ravintola_attendance/resource/strings.dart';
import 'package:flutter/foundation.dart' show kIsWeb; import 'package:flutter/foundation.dart' show kIsWeb;
import 'dart:typed_data'; import 'dart:typed_data';
import 'package:camera/camera.dart'; import 'package:camera/camera.dart';
import 'package:excelso_attendance/helper/component/button.dart'; import 'package:ravintola_attendance/helper/component/button.dart';
import 'package:excelso_attendance/resource/assets.dart'; import 'package:ravintola_attendance/resource/assets.dart';
import 'package:excelso_attendance/resource/colors.dart'; import 'package:ravintola_attendance/resource/colors.dart';
import 'package:excelso_attendance/resource/font.dart'; import 'package:ravintola_attendance/resource/font.dart';
import 'package:excelso_attendance/resource/size.dart'; import 'package:ravintola_attendance/resource/size.dart';
import 'package:excelso_attendance/resource/style.dart'; import 'package:ravintola_attendance/resource/style.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart'; import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:quiver/async.dart'; import 'package:quiver/async.dart';
......
import 'package:excelso_attendance/helper/component/button.dart'; import 'package:ravintola_attendance/helper/component/button.dart';
import 'package:excelso_attendance/helper/global_function/date_time.dart'; import 'package:ravintola_attendance/helper/global_function/date_time.dart';
import 'package:excelso_attendance/helper/widget_responsive.dart'; import 'package:ravintola_attendance/helper/widget_responsive.dart';
import 'package:excelso_attendance/models/absent.dart'; import 'package:ravintola_attendance/models/absent.dart';
import 'package:excelso_attendance/models/profile.dart'; import 'package:ravintola_attendance/models/profile.dart';
import 'package:excelso_attendance/resource/assets.dart'; import 'package:ravintola_attendance/resource/assets.dart';
import 'package:excelso_attendance/resource/colors.dart'; import 'package:ravintola_attendance/resource/colors.dart';
import 'package:excelso_attendance/resource/font.dart'; import 'package:ravintola_attendance/resource/font.dart';
import 'package:excelso_attendance/resource/routes.dart'; import 'package:ravintola_attendance/resource/routes.dart';
import 'package:excelso_attendance/resource/size.dart'; import 'package:ravintola_attendance/resource/size.dart';
import 'package:excelso_attendance/resource/style.dart'; import 'package:ravintola_attendance/resource/style.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class AbsentSuccessView extends StatelessWidget { class AbsentSuccessView extends StatelessWidget {
......
// ignore_for_file: sized_box_for_whitespace // ignore_for_file: sized_box_for_whitespace
import 'package:excelso_attendance/helper/component/button.dart'; import 'package:ravintola_attendance/helper/component/button.dart';
import 'package:excelso_attendance/helper/widget_responsive.dart'; import 'package:ravintola_attendance/helper/widget_responsive.dart';
import 'package:excelso_attendance/main.dart'; import 'package:ravintola_attendance/main.dart';
import 'package:excelso_attendance/resource/colors.dart'; import 'package:ravintola_attendance/resource/colors.dart';
import 'package:excelso_attendance/resource/size.dart'; import 'package:ravintola_attendance/resource/size.dart';
import 'package:excelso_attendance/resource/strings.dart'; import 'package:ravintola_attendance/resource/strings.dart';
import 'package:excelso_attendance/resource/style.dart'; import 'package:ravintola_attendance/resource/style.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart'; import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:geolocator/geolocator.dart'; import 'package:geolocator/geolocator.dart';
......
import 'dart:async'; import 'dart:async';
// import 'package:dropdown_button2/dropdown_button2.dart'; // import 'package:dropdown_button2/dropdown_button2.dart';
import 'package:excelso_attendance/api/api.dart'; import 'package:ravintola_attendance/api/api.dart';
import 'package:excelso_attendance/helper/arguments/route_args.dart'; import 'package:ravintola_attendance/helper/arguments/route_args.dart';
import 'package:excelso_attendance/helper/component/button.dart'; import 'package:ravintola_attendance/helper/component/button.dart';
import 'package:excelso_attendance/helper/component/text_field.dart'; import 'package:ravintola_attendance/helper/component/text_field.dart';
// import 'package:excelso_attendance/helper/component/text_field.dart'; // import 'package:ravintola_attendance/helper/component/text_field.dart';
import 'package:excelso_attendance/helper/global_function/date_time.dart'; import 'package:ravintola_attendance/helper/global_function/date_time.dart';
import 'package:excelso_attendance/helper/modal_dialog.dart'; import 'package:ravintola_attendance/helper/modal_dialog.dart';
import 'package:excelso_attendance/helper/pref.dart'; import 'package:ravintola_attendance/helper/pref.dart';
import 'package:excelso_attendance/helper/widget_responsive.dart'; import 'package:ravintola_attendance/helper/widget_responsive.dart';
import 'package:excelso_attendance/models/branch.dart'; import 'package:ravintola_attendance/models/branch.dart';
import 'package:excelso_attendance/models/profile.dart'; import 'package:ravintola_attendance/models/profile.dart';
import 'package:excelso_attendance/models/shift.dart'; import 'package:ravintola_attendance/models/shift.dart';
import 'package:excelso_attendance/resource/assets.dart'; import 'package:ravintola_attendance/resource/assets.dart';
import 'package:excelso_attendance/resource/colors.dart'; import 'package:ravintola_attendance/resource/colors.dart';
import 'package:excelso_attendance/resource/constanta_string.dart'; import 'package:ravintola_attendance/resource/constanta_string.dart';
import 'package:excelso_attendance/resource/font.dart'; import 'package:ravintola_attendance/resource/font.dart';
import 'package:excelso_attendance/resource/routes.dart'; import 'package:ravintola_attendance/resource/routes.dart';
import 'package:excelso_attendance/resource/size.dart'; import 'package:ravintola_attendance/resource/size.dart';
import 'package:excelso_attendance/resource/strings.dart'; import 'package:ravintola_attendance/resource/strings.dart';
import 'package:excelso_attendance/resource/style.dart'; import 'package:ravintola_attendance/resource/style.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart'; import 'package:flutter_easyloading/flutter_easyloading.dart';
......
import 'package:excelso_attendance/api/api.dart'; import 'package:ravintola_attendance/api/api.dart';
import 'package:excelso_attendance/api/base_api.dart'; import 'package:ravintola_attendance/api/base_api.dart';
import 'package:excelso_attendance/helper/arguments/error_args.dart'; import 'package:ravintola_attendance/helper/arguments/error_args.dart';
import 'package:excelso_attendance/helper/arguments/route_args.dart'; import 'package:ravintola_attendance/helper/arguments/route_args.dart';
import 'package:excelso_attendance/helper/pref.dart'; import 'package:ravintola_attendance/helper/pref.dart';
import 'package:excelso_attendance/helper/widget_responsive.dart'; import 'package:ravintola_attendance/helper/widget_responsive.dart';
import 'package:excelso_attendance/main.dart'; import 'package:ravintola_attendance/main.dart';
import 'package:excelso_attendance/models/branch.dart'; import 'package:ravintola_attendance/models/branch.dart';
import 'package:excelso_attendance/models/shift.dart'; import 'package:ravintola_attendance/models/shift.dart';
import 'package:excelso_attendance/resource/assets.dart'; import 'package:ravintola_attendance/resource/assets.dart';
import 'package:excelso_attendance/resource/colors.dart'; import 'package:ravintola_attendance/resource/colors.dart';
import 'package:excelso_attendance/resource/font.dart'; import 'package:ravintola_attendance/resource/font.dart';
import 'package:excelso_attendance/resource/routes.dart'; import 'package:ravintola_attendance/resource/routes.dart';
import 'package:excelso_attendance/resource/size.dart'; import 'package:ravintola_attendance/resource/size.dart';
import 'package:excelso_attendance/resource/strings.dart'; import 'package:ravintola_attendance/resource/strings.dart';
import 'package:excelso_attendance/resource/style.dart'; import 'package:ravintola_attendance/resource/style.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:geolocator/geolocator.dart'; import 'package:geolocator/geolocator.dart';
// ignore: avoid_web_libraries_in_flutter // ignore: avoid_web_libraries_in_flutter
...@@ -240,7 +240,7 @@ dengan sekali klik''', ...@@ -240,7 +240,7 @@ dengan sekali klik''',
), ),
GestureDetector( GestureDetector(
onTap: () { onTap: () {
if (getAllApi) { if (getAllApi && nearestBranch.isNotEmpty) {
Navigator.pushNamed( Navigator.pushNamed(
context, context,
Routes.home, Routes.home,
......
...@@ -3,7 +3,7 @@ const String rootIcon = "assets/icons/"; ...@@ -3,7 +3,7 @@ const String rootIcon = "assets/icons/";
class Assets { class Assets {
// images // images
static String excelso = "${rootImage}excelso.png"; static String excelso = "${rootImage}ravintola-white.png";
static String excelsoLogo = "${rootImage}excelso_logo.png"; static String excelsoLogo = "${rootImage}excelso_logo.png";
static String excelsoLogoGreen = "${rootImage}excelso_logo_green.png"; static String excelsoLogoGreen = "${rootImage}excelso_logo_green.png";
static String onboarding = "${rootImage}onboarding.png"; static String onboarding = "${rootImage}onboarding.png";
......
import 'package:excelso_attendance/helper/arguments/error_args.dart'; import 'package:ravintola_attendance/helper/arguments/error_args.dart';
import 'package:excelso_attendance/helper/arguments/route_args.dart'; import 'package:ravintola_attendance/helper/arguments/route_args.dart';
import 'package:excelso_attendance/main.dart'; import 'package:ravintola_attendance/main.dart';
import 'package:excelso_attendance/page/absent_camera/absent_camera.dart'; import 'package:ravintola_attendance/page/absent_camera/absent_camera.dart';
import 'package:excelso_attendance/page/absent_success/absent_success.dart'; import 'package:ravintola_attendance/page/absent_success/absent_success.dart';
import 'package:excelso_attendance/page/error/error_widget.dart'; import 'package:ravintola_attendance/page/error/error_widget.dart';
import 'package:excelso_attendance/page/home/home.dart'; import 'package:ravintola_attendance/page/home/home.dart';
import 'package:excelso_attendance/page/onboarding/onboarding.dart'; import 'package:ravintola_attendance/page/onboarding/onboarding.dart';
import 'package:excelso_attendance/resource/strings.dart'; import 'package:ravintola_attendance/resource/strings.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
......
import 'package:excelso_attendance/resource/font.dart'; import 'package:ravintola_attendance/resource/font.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
TextStyle _getStyle( TextStyle _getStyle(
......
...@@ -4,10 +4,10 @@ project(runner LANGUAGES CXX) ...@@ -4,10 +4,10 @@ project(runner LANGUAGES CXX)
# The name of the executable created for the application. Change this to change # The name of the executable created for the application. Change this to change
# the on-disk name of your application. # the on-disk name of your application.
set(BINARY_NAME "excelso_attendance") set(BINARY_NAME "ravintola_attendance")
# The unique GTK application identifier for this application. See: # The unique GTK application identifier for this application. See:
# https://wiki.gnome.org/HowDoI/ChooseApplicationID # https://wiki.gnome.org/HowDoI/ChooseApplicationID
set(APPLICATION_ID "com.example.excelso_attendance") set(APPLICATION_ID "com.example.ravintola_attendance")
# Explicitly opt in to modern CMake behaviors to avoid warnings with recent # Explicitly opt in to modern CMake behaviors to avoid warnings with recent
# versions of CMake. # versions of CMake.
......
...@@ -40,11 +40,11 @@ static void my_application_activate(GApplication* application) { ...@@ -40,11 +40,11 @@ static void my_application_activate(GApplication* application) {
if (use_header_bar) { if (use_header_bar) {
GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new()); GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new());
gtk_widget_show(GTK_WIDGET(header_bar)); gtk_widget_show(GTK_WIDGET(header_bar));
gtk_header_bar_set_title(header_bar, "excelso_attendance"); gtk_header_bar_set_title(header_bar, "ravintola_attendance");
gtk_header_bar_set_show_close_button(header_bar, TRUE); gtk_header_bar_set_show_close_button(header_bar, TRUE);
gtk_window_set_titlebar(window, GTK_WIDGET(header_bar)); gtk_window_set_titlebar(window, GTK_WIDGET(header_bar));
} else { } else {
gtk_window_set_title(window, "excelso_attendance"); gtk_window_set_title(window, "ravintola_attendance");
} }
gtk_window_set_default_size(window, 1280, 720); gtk_window_set_default_size(window, 1280, 720);
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
/* Begin PBXFileReference section */ /* Begin PBXFileReference section */
333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = "<group>"; }; 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = "<group>"; };
335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = "<group>"; }; 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = "<group>"; };
33CC10ED2044A3C60003C045 /* excelso_attendance.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "excelso_attendance.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 33CC10ED2044A3C60003C045 /* ravintola_attendance.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ravintola_attendance.app"; sourceTree = BUILT_PRODUCTS_DIR; };
33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; }; 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = "<group>"; }; 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = "<group>"; };
33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; }; 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
33CC10EE2044A3C60003C045 /* Products */ = { 33CC10EE2044A3C60003C045 /* Products */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
33CC10ED2044A3C60003C045 /* excelso_attendance.app */, 33CC10ED2044A3C60003C045 /* ravintola_attendance.app */,
); );
name = Products; name = Products;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
); );
name = Runner; name = Runner;
productName = Runner; productName = Runner;
productReference = 33CC10ED2044A3C60003C045 /* excelso_attendance.app */; productReference = 33CC10ED2044A3C60003C045 /* ravintola_attendance.app */;
productType = "com.apple.product-type.application"; productType = "com.apple.product-type.application";
}; };
/* End PBXNativeTarget section */ /* End PBXNativeTarget section */
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<BuildableReference <BuildableReference
BuildableIdentifier = "primary" BuildableIdentifier = "primary"
BlueprintIdentifier = "33CC10EC2044A3C60003C045" BlueprintIdentifier = "33CC10EC2044A3C60003C045"
BuildableName = "excelso_attendance.app" BuildableName = "ravintola_attendance.app"
BlueprintName = "Runner" BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj"> ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference> </BuildableReference>
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<BuildableReference <BuildableReference
BuildableIdentifier = "primary" BuildableIdentifier = "primary"
BlueprintIdentifier = "33CC10EC2044A3C60003C045" BlueprintIdentifier = "33CC10EC2044A3C60003C045"
BuildableName = "excelso_attendance.app" BuildableName = "ravintola_attendance.app"
BlueprintName = "Runner" BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj"> ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference> </BuildableReference>
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
<BuildableReference <BuildableReference
BuildableIdentifier = "primary" BuildableIdentifier = "primary"
BlueprintIdentifier = "33CC10EC2044A3C60003C045" BlueprintIdentifier = "33CC10EC2044A3C60003C045"
BuildableName = "excelso_attendance.app" BuildableName = "ravintola_attendance.app"
BlueprintName = "Runner" BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj"> ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference> </BuildableReference>
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
<BuildableReference <BuildableReference
BuildableIdentifier = "primary" BuildableIdentifier = "primary"
BlueprintIdentifier = "33CC10EC2044A3C60003C045" BlueprintIdentifier = "33CC10EC2044A3C60003C045"
BuildableName = "excelso_attendance.app" BuildableName = "ravintola_attendance.app"
BlueprintName = "Runner" BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj"> ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference> </BuildableReference>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// 'flutter create' template. // 'flutter create' template.
// The application's name. By default this is also the title of the Flutter window. // The application's name. By default this is also the title of the Flutter window.
PRODUCT_NAME = excelso_attendance PRODUCT_NAME = ravintola_attendance
// The application's bundle identifier // The application's bundle identifier
PRODUCT_BUNDLE_IDENTIFIER = com.example.excelsoAttendance PRODUCT_BUNDLE_IDENTIFIER = com.example.excelsoAttendance
......
...@@ -117,10 +117,10 @@ packages: ...@@ -117,10 +117,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: collection name: collection
sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.17.2" version: "1.18.0"
convert: convert:
dependency: transitive dependency: transitive
description: description:
...@@ -404,10 +404,10 @@ packages: ...@@ -404,10 +404,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: meta name: meta
sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.9.1" version: "1.10.0"
path: path:
dependency: transitive dependency: transitive
description: description:
...@@ -561,18 +561,18 @@ packages: ...@@ -561,18 +561,18 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: stack_trace name: stack_trace
sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.11.0" version: "1.11.1"
stream_channel: stream_channel:
dependency: transitive dependency: transitive
description: description:
name: stream_channel name: stream_channel
sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.1.1" version: "2.1.2"
stream_transform: stream_transform:
dependency: transitive dependency: transitive
description: description:
...@@ -601,10 +601,10 @@ packages: ...@@ -601,10 +601,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: test_api name: test_api
sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.6.0" version: "0.6.1"
typed_data: typed_data:
dependency: transitive dependency: transitive
description: description:
...@@ -641,10 +641,10 @@ packages: ...@@ -641,10 +641,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: web name: web
sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.1.4-beta" version: "0.3.0"
win32: win32:
dependency: transitive dependency: transitive
description: description:
...@@ -686,5 +686,5 @@ packages: ...@@ -686,5 +686,5 @@ packages:
source: hosted source: hosted
version: "3.1.2" version: "3.1.2"
sdks: sdks:
dart: ">=3.1.0-185.0.dev <4.0.0" dart: ">=3.2.0-194.0.dev <4.0.0"
flutter: ">=3.3.0" flutter: ">=3.3.0"
name: excelso_attendance name: ravintola_attendance
description: Ravintola Online Attendance For Excelso.. description: Ravintola Online Attendance..
# The following line prevents the package from being accidentally published to # The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages. # pub.dev using `flutter pub publish`. This is preferred for private packages.
...@@ -55,23 +55,25 @@ dev_dependencies: ...@@ -55,23 +55,25 @@ dev_dependencies:
flutter_launcher_icons: flutter_launcher_icons:
android: "launcher_icon" android: "launcher_icon"
ios: true ios: true
image_path: "assets/images/excelso_logo1.png" image_path: "assets/images/rav_icon.png"
min_sdk_android: 21 # android min sdk min:16, default 21 min_sdk_android: 21 # android min sdk min:16, default 21
web: web:
generate: true generate: true
image_path: "assets/images/excelso_logo1.png" image_path: "assets/images/rav_icon.png"
background_color: "#FFFFFF" background_color: "#FFFFFF"
theme_color: "#FFFFFF" theme_color: "#FFFFFF"
windows: # windows:
generate: true # generate: true
image_path: "assets/images/excelso_logo1.png" # image_path: "assets/images/excelso_logo1.png"
icon_size: 48 # min:48, max:256, default: 48 # icon_size: 48 # min:48, max:256, default: 48
macos: # macos:
generate: true # generate: true
image_path: "assets/images/excelso_logo1.png" # image_path: "assets/images/excelso_logo1.png"
# For information on the generic Dart part of this file, see the # For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec # following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter packages. # The following section is specific to Flutter packages.
flutter: flutter:
assets: assets:
- assets/images/ - assets/images/
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
import 'package:excelso_attendance/main.dart'; import 'package:ravintola_attendance/main.dart';
void main() { void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async { testWidgets('Counter increments smoke test', (WidgetTester tester) async {
......
web/favicon.png

564 Bytes | W: | H:

web/favicon.png

785 Bytes | W: | H:

web/favicon.png
web/favicon.png
web/favicon.png
web/favicon.png
  • 2-up
  • Swipe
  • Onion skin
web/icons/Icon-192.png

9.74 KB | W: | H:

web/icons/Icon-192.png

32.9 KB | W: | H:

web/icons/Icon-192.png
web/icons/Icon-192.png
web/icons/Icon-192.png
web/icons/Icon-192.png
  • 2-up
  • Swipe
  • Onion skin
web/icons/Icon-512.png

24.1 KB | W: | H:

web/icons/Icon-512.png

143 KB | W: | H:

web/icons/Icon-512.png
web/icons/Icon-512.png
web/icons/Icon-512.png
web/icons/Icon-512.png
  • 2-up
  • Swipe
  • Onion skin
web/icons/Icon-maskable-192.png

9.74 KB | W: | H:

web/icons/Icon-maskable-192.png

32.9 KB | W: | H:

web/icons/Icon-maskable-192.png
web/icons/Icon-maskable-192.png
web/icons/Icon-maskable-192.png
web/icons/Icon-maskable-192.png
  • 2-up
  • Swipe
  • Onion skin
web/icons/Icon-maskable-512.png

24.1 KB | W: | H:

web/icons/Icon-maskable-512.png

143 KB | W: | H:

web/icons/Icon-maskable-512.png
web/icons/Icon-maskable-512.png
web/icons/Icon-maskable-512.png
web/icons/Icon-maskable-512.png
  • 2-up
  • Swipe
  • Onion skin
<!DOCTYPE html> <!DOCTYPE html><html><head>
<html>
<head>
<!-- <!--
If you are serving your web app in a path other than the root, change the If you are serving your web app in a path other than the root, change the
href value below to reflect the base path you are serving from. href value below to reflect the base path you are serving from.
...@@ -14,26 +12,23 @@ ...@@ -14,26 +12,23 @@
This is a placeholder for base href that will be replaced by the value of This is a placeholder for base href that will be replaced by the value of
the `--base-href` argument provided to `flutter build`. the `--base-href` argument provided to `flutter build`.
--> -->
<base href="/" /> <base href="/">
<meta charset="UTF-8" /> <meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible" /> <meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta <meta name="description" content="Ravintola Online Attendance.">
name="description"
content="Ravintola Online Attendance For Excelso."
/>
<!-- iOS meta tags & icons --> <!-- iOS meta tags & icons -->
<meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black" /> <meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Excelso Attendance" /> <meta name="apple-mobile-web-app-title" content="Ravintola Attendance">
<link rel="apple-touch-icon" href="icons/Icon-192.png" /> <link rel="apple-touch-icon" href="icons/Icon-192.png">
<!-- Favicon --> <!-- Favicon -->
<link rel="icon" type="image/png" href="excelso_logo.png" /> <link rel="icon" type="image/png" href="rav_icon.png">
<title>Excelso Attendance</title> <title>Ravintola Attendance</title>
<link rel="manifest" href="manifest.json" /> <link rel="manifest" href="manifest.json">
<script> <script>
// The value below is injected by flutter build, do not touch. // The value below is injected by flutter build, do not touch.
...@@ -42,118 +37,101 @@ ...@@ -42,118 +37,101 @@
<!-- This script adds the flutter initialization JS code --> <!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer=""></script> <script src="flutter.js" defer=""></script>
<meta <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
name="viewport"
/>
<style id="splash-screen-style">
html {
height: 100%;
}
<style id="splash-screen-style">
html {
height: 100%
}
body {
margin: 0;
min-height: 100%;
background-color: #ffffff;
background-size: 100% 100%;
}
.center {
margin: 0;
position: absolute;
top: 50%;
left: 50%;
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
.contain {
display:block;
width:100%; height:100%;
object-fit: contain;
}
.stretch {
display:block;
width:100%; height:100%;
}
.cover {
display:block;
width:100%; height:100%;
object-fit: cover;
}
.bottom {
position: absolute;
bottom: 0;
left: 50%;
-ms-transform: translate(-50%, 0);
transform: translate(-50%, 0);
}
.bottomLeft {
position: absolute;
bottom: 0;
left: 0;
}
.bottomRight {
position: absolute;
bottom: 0;
right: 0;
}
@media (prefers-color-scheme: dark) {
body { body {
margin: 0;
min-height: 100%;
background-color: #ffffff; background-color: #ffffff;
background-size: 100% 100%; }
} }
</style>
.center { <script id="splash-screen-script">
margin: 0; function removeSplashFromWeb() {
position: absolute; document.getElementById("splash")?.remove();
top: 50%; document.getElementById("splash-branding")?.remove();
left: 50%; document.body.style.background = "transparent";
-ms-transform: translate(-50%, -50%); }
transform: translate(-50%, -50%); </script>
} </head>
.contain {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
}
.stretch {
display: block;
width: 100%;
height: 100%;
}
.cover {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.bottom {
position: absolute;
bottom: 0;
left: 50%;
-ms-transform: translate(-50%, 0);
transform: translate(-50%, 0);
}
.bottomLeft {
position: absolute;
bottom: 0;
left: 0;
}
.bottomRight {
position: absolute;
bottom: 0;
right: 0;
}
@media (prefers-color-scheme: dark) {
body {
background-color: #ffffff;
}
}
</style>
<script id="splash-screen-script">
function removeSplashFromWeb() {
document.getElementById("splash")?.remove();
document.getElementById("splash-branding")?.remove();
document.body.style.background = "transparent";
}
</script>
</head>
<body> <body>
<picture id="splash"> <picture id="splash">
<source <source srcset="splash/img/light-1x.png 1x, splash/img/light-2x.png 2x, splash/img/light-3x.png 3x, splash/img/light-4x.png 4x" media="(prefers-color-scheme: light)">
srcset=" <source srcset="splash/img/dark-1x.png 1x, splash/img/dark-2x.png 2x, splash/img/dark-3x.png 3x, splash/img/dark-4x.png 4x" media="(prefers-color-scheme: dark)">
splash/img/light-1x.png 1x, <img class="center" aria-hidden="true" src="splash/img/light-1x.png" alt="">
splash/img/light-2x.png 2x, </picture>
splash/img/light-3x.png 3x,
splash/img/light-4x.png 4x
"
media="(prefers-color-scheme: light)"
/>
<source
srcset="
splash/img/dark-1x.png 1x,
splash/img/dark-2x.png 2x,
splash/img/dark-3x.png 3x,
splash/img/dark-4x.png 4x
"
media="(prefers-color-scheme: dark)"
/>
<h3 class="center" aria-hidden="true">
<img
class="center"
aria-hidden="true"
src="splash/img/light-1x.png"
alt="Excelso"
/>
<br />
<br />
Please wait...
</h3>
</picture>
<script> <script>
window.addEventListener("load", function (ev) { window.addEventListener("load", function (ev) {
// Download main.dart.js // Download main.dart.js
...@@ -171,5 +149,6 @@ ...@@ -171,5 +149,6 @@
}); });
}); });
</script> </script>
</body>
</html>
</body></html>
\ No newline at end of file
{ {
"name": "Excelso Attendance", "name": "Ravintola Attendance",
"short_name": "Excelso Attendance", "short_name": "Ravintola Attendance",
"start_url": ".", "start_url": ".",
"display": "standalone", "display": "standalone",
"background_color": "#FFFFFF", "background_color": "#FFFFFF",
"theme_color": "#FFFFFF", "theme_color": "#FFFFFF",
"description": "Ravintola Online Attendance For Excelso.", "description": "Ravintola Online Attendance.",
"orientation": "portrait-primary", "orientation": "portrait-primary",
"prefer_related_applications": false, "prefer_related_applications": false,
"icons": [ "icons": [
......
web/splash/img/dark-1x.png

1.29 KB | W: | H:

web/splash/img/dark-1x.png

1.85 KB | W: | H:

web/splash/img/dark-1x.png
web/splash/img/dark-1x.png
web/splash/img/dark-1x.png
web/splash/img/dark-1x.png
  • 2-up
  • Swipe
  • Onion skin
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment