Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀
On vacation

Ab felagund18

🚀
On vacation
View GitHub Profile
@felagund18
felagund18 / tab1.dart
Last active Jul 23, 2018
FutureBuilder test
View tab1.dart
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 Nov 3, 2020
Pass data to StatelessWidget
View item.dart
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(
You can’t perform that action at this time.