This file contains 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:map_launcher/map_launcher.dart'; | |
import 'package:overlay_support/overlay_support.dart'; | |
class HomePage extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Container( | |
color: Colors.white, | |
child: Center( |
This file contains 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:social_media_widgets/instagram_story_swipe.dart'; | |
import 'screen.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override |
This file contains 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 Screen extends StatelessWidget { | |
final String name; | |
final Color color; | |
const Screen(this.name, this.color); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
body: Container( |
This file contains 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
const request = require("request"); | |
request( | |
"https://baylorbears.com/sports/2018/5/16/ot-live-stats-html.aspx", | |
{ | |
json: true, | |
headers: { | |
"User-Agent": | |
//Requesting as a browser | |
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)" + |
This file contains 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
const request = require("request"); | |
request( | |
"https://baylorbears.com/sports/2018/5/16/ot-live-stats-html.aspx", | |
{ | |
json: true, | |
}, | |
(err, res, body) => { | |
if (err) { | |
return console.log(err); |
This file contains 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:io'; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:shared_preferences/shared_preferences.dart'; | |
import 'package:talkfootball/constants.dart'; | |
class DoNotAskAgainDialog extends StatefulWidget { | |
final String title, subTitle, positiveButtonText, negativeButtonText; | |
final Function onPositiveButtonClicked; |
This file contains 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:io'; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:package_info/package_info.dart'; | |
import 'package:parse_server_sdk/parse_server_sdk.dart'; | |
import 'package:pub_semver/pub_semver.dart'; | |
import 'package:shared_preferences/shared_preferences.dart'; | |
import 'package:talkfootball/constants.dart'; | |
import 'package:talkfootball/dialogs/do_not_ask_again_dialog.dart'; |
This file contains 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
typedef Future<bool> OnDeleteClicked(); | |
class DeleteWidget extends StatefulWidget { | |
final OnDeleteClicked onDeleteClicked; | |
DeleteWidget(this.onDeleteClicked); | |
@override | |
_DeleteWidgetState createState() => _DeleteWidgetState(); | |
} |
This file contains 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
//Add delete widget | |
Stack( | |
children: <Widget>[ | |
InkWell( | |
onTap: () => _onPhotoClicked(index - 1), | |
child: Container( | |
margin: EdgeInsets.all(5), | |
height: 100, | |
width: 100, | |
color: kLightGray, |
This file contains 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
SharedPreferences sharedPreferences; | |
@override | |
void initState() { | |
super.initState(); | |
loadImages(); | |
} | |
loadImages() async { |