Skip to content

Instantly share code, notes, and snippets.

View felagund18's full-sized avatar
🚀
On vacation

Ab felagund18

🚀
On vacation
View GitHub Profile
@felagund18
felagund18 / tab1.dart
Last active July 23, 2018 18:28
FutureBuilder test
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'dart:async';
import 'dart:convert';
class tab1 extends StatelessWidget {
Future<List> _getData() async {
final response = await http.get('https://api.androidhive.info/contacts/');
@felagund18
felagund18 / item.dart
Last active March 1, 2021 09:28
Pass data to StatelessWidget
import 'package:flutter/material.dart';
class Item extends StatelessWidget {
Item({Key key, this.param}) : super(key: key);
final Map param;
@override
Widget build(BuildContext context) {
return Container(