This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file contains the fastlane.tools configuration | |
# You can find the documentation at https://docs.fastlane.tools | |
# | |
# For a list of all available actions, check out | |
# | |
# https://docs.fastlane.tools/actions | |
# | |
# For a list of all available plugins, check out | |
# | |
# https://docs.fastlane.tools/plugins/available-plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android { | |
sourceSets { | |
main { | |
proto { | |
// Directory Default Proto | |
srcDir 'src/main/proto' | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(keystoreProperties['storeFile']){ | |
keyAlias keystoreProperties['keyAlias'] | |
keyPassword keystoreProperties['keyPassword'] | |
storeFile file(keystoreProperties['storeFile']) | |
storePassword keystoreProperties['storePassword'] | |
} else { | |
storeFile file('DevKeyStore.jks') | |
storePassword 'xxxxx' | |
keyAlias 'alias your app' | |
keyPassword 'xxxx' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PdfUtil { | |
final doc = pdf.Document(); | |
final PdfPageFormat? formatPage; | |
PdfUtil(this.formatPage); | |
Future<Uint8List> buildPdf(pdf.Widget widget) { | |
doc.addPage(pdf.Page( | |
build: (pdf.Context context) => widget, | |
pageFormat: formatPage, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void _setupChopper() { | |
final httpx = HttpClient(); | |
httpx.findProxy = (url) => 'PROXY <ip_address_from_postman>:9090'; | |
httpx.badCertificateCallback = | |
(X509Certificate cert, String host, int port) => true; | |
_client = ChopperClient( | |
converter: JsonConverter(), | |
baseUrl: baseurl, | |
client: http.IOClient(httpx), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:bagidua/screens/food/detail_food_page.dart'; | |
import 'package:bagidua/screens/home_page.dart'; | |
import 'package:bagidua/screens/order/order_page.dart'; | |
import 'package:fluro/fluro.dart'; | |
import 'package:flutter/material.dart'; | |
class RoutesHandler { | |
static dynamic homeHandler() { | |
return Handler( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RouteName { | |
static const String login = '/login'; | |
static const String register = '/register'; | |
static const String home = '/home'; | |
static const String detailFood = '/detail/food'; | |
static const String order = '/order'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//singleton | |
class User{ | |
static final User _user = User._private(); | |
User._private(){} | |
factory User.singleton(int ids){ | |
return _user; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main(){ | |
/// 1. forEach | |
var perusahaan = ['bukalapak', 'tokopedia', 'blibli', 'salestock']; | |
perusahaan.forEach((data)=> print(data)); /// bukalapak tokopedia blibli salestock | |
///2 | |
var perusahan_id = perusahaan.map((data)=> '${data} indonesia').toList(); | |
print(perusahan_id); | |
///3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main(){ | |
/// 1. forEach | |
var perusahaan = ['bukalapak', 'tokopedia', 'blibli', 'salestock']; | |
perusahaan.forEach((data)=> print(data)); /// bukalapak tokopedia blibli salestock | |
///2 | |
var perusahan_id = perusahaan.map((data)=> '${data} indonesia').toList(); | |
print(perusahan_id); | |
///3 |
NewerOlder