Skip to content

Instantly share code, notes, and snippets.

View yunus-floo's full-sized avatar

Ahmad Yunus Afghoni yunus-floo

View GitHub Profile
@yunus-floo
yunus-floo / localAuthSettingsForAndroid_kotlin.md
Created November 2, 2022 02:53 — forked from akifarhan/localAuthSettingsForAndroid_kotlin.md
Flutter Local_Auth Setting for Android in Kotlin

Note that local_auth plugin requires the use of a FragmentActivity as opposed to Activity. This can be easily done by switching to use FlutterFragmentActivity as opposed to FlutterActivity in your manifest (or your own Activity class if you are extending the base class).

1. Add USE_FINGERPRINT permission

  • Open android>app>src>main>AndroidManifest.xml
  • Add the permission
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.[your.package]">
  <uses-permission android:name="android.permission.USE_FINGERPRINT"/>
abstract class AttachmentRepository {
Future<Either<Failure, List<Attachment>>> getData();
}
class AttachmentRepositoryImpl implements AttachmentRepository {
AttachmentRepositoryImpl({
required this.remoteDataSource,
});
final AttachmentRemoteDataSource remoteDataSource;
class AttachmentDTO {
int id;
String local_path;
String path_file;
String parent_id;
String type;
AttachmentDTO({this.id, this.local_path, this.parent_id, this.path_file, this.type});
factory Attachment.fromJson(Map<String, dynamic> json) => Attachment(
@yunus-floo
yunus-floo / MATERIAL_GROUP_MIPP.sql
Created September 27, 2021 04:53
SQL Material group
DROP TABLE IF EXISTS [dbo].[PIHC_MATERIAL_MASTER_STOCK];
create table dbo.PIHC_MATERIAL_MASTER_STOCK
(
PLANT varchar(4) not null,
MATERIAL_NUMBER varchar(18) not null,
BASE_UOM varchar(3) not null,
MATERIAL_DESC varchar(40),
MATERIAL_MIPP_CODE int