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
mysql = [(1, "Y"), (3, "T")] | |
data_json =[ | |
{ | |
'nama':'faiz', | |
'pendidikan':{ | |
'induk':1, | |
'kelas':'VII', | |
} | |
}, | |
{ |
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
151.101.129.140 i.redditmedia.com | |
52.34.230.181 www.reddithelp.com | |
151.101.65.140 g.redditmedia.com | |
151.101.65.140 a.thumbs.redditmedia.com | |
151.101.1.140 redditgifts.com | |
151.101.1.140 i.redd.it | |
151.101.1.140 old.reddit.com | |
151.101.1.140 new.reddit.com | |
151.101.129.140 reddit.com | |
151.101.129.140 gateway.reddit.com |
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
'package:flutter/services.dart' | |
try { | |
FirebaseUser = auth; | |
} on PlatformException catch (e) { | |
print(e) | |
} |
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 |
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
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
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
import 'package:fluro/fluro.dart'; | |
import 'package:bagidua/utils/route_name.dart'; | |
import 'package:bagidua/utils/routes_handler.dart'; | |
class RoutesConfig { | |
static void configRoutes(Router router) { | |
router.define(RouteName.home, handler: RoutesHandler.homeHandler()); | |
OlderNewer