Skip to content

Instantly share code, notes, and snippets.

View doppelledev's full-sized avatar

Abdou doppelledev

  • Morocco
View GitHub Profile
@doppelledev
doppelledev / home_page.dart
Last active July 31, 2019 12:52
Scrollable bottom sheet
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
@doppelledev
doppelledev / main.dart
Created July 24, 2019 12:17
For a SO question
class _MyHomePageState extends State<MyHomePage>
with SingleTickerProviderStateMixin {
int theirGroupValue = 0;
List data = List();
var data1 = [];
var data2 = [];
var data3 = [];
String url = 'https://e19f7c9d.ngrok.io/api/events/westernaf/packages';
@doppelledev
doppelledev / main.dart
Last active July 22, 2019 01:32
Explaining async functions
void main() async {
print('getting num');
var x = await getNum();
print('got $x');
print('getting num slowly');
var y = await getNumSlowly();
print('got $y');
}