This file contains hidden or 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 MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
// TODO: implement build | |
return MaterialApp( | |
home: DefaultTabController( | |
length: 5, | |
child: Scaffold( |
This file contains hidden or 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() { | |
List<Map<String, dynamic>> data = [ | |
{"title": "A"}, | |
{ | |
"title": "B", | |
"options": [ | |
{"name": "Joko Widodo"}, | |
{"name": "Maruf Amin"}, | |
{"name": "Tidak tahu"}, | |
{"name": "Tidak Menjawab"} |
This file contains hidden or 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 'dart:convert'; | |
void main() { | |
var jsonSource = """ | |
{ | |
"Events": [ | |
{ | |
"id": 1, | |
"event_name": "Cake tasting", | |
"event_photo": "https://dispensaries.s3.amazonaws.com/event_photo/Southern_Cali_Kush_3.jpg", |