Skip to content

Instantly share code, notes, and snippets.

View RyanAfrish7's full-sized avatar
😎

Afrish Khan S RyanAfrish7

😎
View GitHub Profile
@RyanAfrish7
RyanAfrish7 / foobar.dart
Created September 18, 2018 19:54
GlobalKey.currentState == null
import 'package:flutter/cupertino.dart';
class FooBarView extends StatefulWidget {
VoidCallback onTap;
String name;
FooBarView({Key key, @required this.name, @required this.onTap}): super(key: key);
@override
FooBarViewState createState() => FooBarViewState();