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
npm install vue // Saya pakek versi 2 |
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
vue init webpack NamaProyekKamu |
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
vue init webpack tekoDewe | |
//tekan enter aja setelah pengisian author | |
//pilih y ketika opsi install vue-router | |
//selebihnya tidak di butuhkan jadi pilih n saja | |
//ketika opsi memilih npm, enter saja npm nya |
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() { | |
print(10 - 5); | |
//kalo di dart dia punya var kayak di kotlin | |
//semua type data ganti aja jadi var | |
var nama = "ilzam"; | |
var umur = 16; | |
var gantengKah = true; | |
nama = "Suku"; | |
print(nama); | |
//Klo mau konstans ya pakek keyword final |
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() { | |
// Sekarang Beralih ke tingkat operatornya bang | |
// Percabangan | |
var nilai = 75; | |
if(nilai > 75){ | |
print("tidak remidi"); | |
} | |
else{ | |
print("Anda Harus Remidi"); | |
} |
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
[ | |
{ | |
"nama": "Agrowisata Bhakti Alam", | |
"deskripsi": "Agrowisata Bhakti Alam berlokasi di Desa Ngembal, Kecamatan Tutur, Kabupaten Pasuruan. Agrowisata yang berada di ketinggian 500 mdpl ini menawarkan spot wisata yang sejuk dan asri. Kamu bisa menemukan beragam buah-buahan, seperti kelengkeng, jeruk, mangga, dan lain-lain. Kamu juga bakal dimanjakan dengan beragam spot foto yang asyik dan menarik.", | |
"gambar": "https://cdn.idntimes.com/content-images/post/20181230/1-16f73d6c873acca7d7977e8e40a61be8.jpg", | |
"lat" : -7.8157844, | |
"lng" : 112.8040013 | |
}, | |
{ | |
"nama": "Kebun Raya Purwodadi", |
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:flutter/material.dart'; | |
class Pertama extends StatelessWidget { | |
const Pertama({Key key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
body: Center( | |
child: RaisedButton( |
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:flutter/material.dart'; | |
class Kedua extends StatelessWidget { | |
const Kedua({Key key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
body: Center( | |
child: Text('Ini Halaman Kedua'), |
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:flutter/material.dart'; | |
class Geser extends PageRouteBuilder { | |
final Widget child; | |
Geser({@required this.child}) | |
: super( | |
pageBuilder: (context, animation, secondaryAnimation) => child, | |
transitionsBuilder: (context, animation, secondaryAnimation, child) => SlideTransition( | |
position: Tween<Offset>( |
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 Pertama extends StatelessWidget { | |
const Pertama({Key key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
body: Center( | |
child: RaisedButton( | |
child: Text('Pindah Slur!!'), | |
onPressed: () => Navigator.of(context).push(Geser(child: Kedua())), |
OlderNewer