Skip to content

Instantly share code, notes, and snippets.

On vacation

Ab felagund18

On vacation
View GitHub Profile
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('');
felagund18 / item.dart
Last active Mar 1, 2021
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;
Widget build(BuildContext context) {
return Container(