This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:convert'; | |
import 'dart:typed_data'; | |
import 'dart:html' as html; | |
import 'dart:js' as js; | |
CustomPlatform getInstance() => CommonImport(); | |
class CommonImport implements CustomPlatform { | |
@override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TabController tabController; | |
@override | |
void initState() { | |
// TODO: implement initState | |
super.initState(); | |
tabController = TabController(vsync: this, length: 2); | |
} | |
AppBar( | |
title: loader | |
? Shimmer.fromColors( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Consts { | |
Consts._(); | |
static const double padding = 16.0; | |
static const double avatarRadius = 56.0; | |
} | |
class CustomDialog extends StatefulWidget { | |
final String username; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:font_awesome_flutter/font_awesome_flutter.dart'; | |
import '../widgets/CustomDialog.dart'; | |
import '../widgets/Urlwidget.dart'; | |
class ListTileData extends StatelessWidget { | |
final String username; | |
final String htmlurl; | |
final String imageurl; | |
const ListTileData({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@override | |
Widget build(BuildContext context) { | |
return MultiProvider( | |
providers: [ | |
ChangeNotifierProvider.value(value: Auth()), | |
], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Function to be called after submitting the form. | |
final _formKey = GlobalKey<FormState>(); | |
final GlobalKey<ScaffoldState> _scaffoldKey = new GlobalKey<ScaffoldState>(); | |
Map<String, String> _authData22 = { | |
'username': '', | |
}; | |
Future<void> _submit(BuildContext context) async { | |
if (!_formKey.currentState.validate()) { | |
// Invalid! test |