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
RaisedButton.icon( | |
label: Text("Pay"), | |
shape: RoundedRectangleBorder( | |
borderRadius: BorderRadius.circular(10.0), | |
// side: BorderSide(color: Colors.red), | |
), | |
onPressed: () { | |
if (Platform.isIOS) { | |
_controller.jumpTo(450); | |
} |
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
Timer _timer; | |
int _start = game_length; | |
Color timerColor = timerControlColors00; | |
void startTimer() { | |
const oneSec = const Duration(seconds: 1); | |
_timer = new Timer.periodic( | |
oneSec, | |
(Timer timer) => setState( | |
() { |
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
/// LogOut | |
Padding( | |
padding: const EdgeInsets.only(left : 20, right : 20.0), | |
child: ButtonTheme( | |
highlightColor: Colors.red[900], | |
splashColor: Colors.red[600], | |
minWidth: 315, | |
height: 50, | |
child: RaisedButton( | |
elevation: 2, |
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
ClipRRect( | |
borderRadius: BorderRadius.circular(70.0), | |
child: CachedNetworkImage( | |
imageUrl: AVATAR_PATH_BASE_URL + avatarList[index]['path'], | |
placeholder: (context, url) => CircularProgressIndicator(), | |
errorWidget: (context, url, error) => Icon(Icons.error), | |
), | |
) |
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
Padding( | |
padding: const EdgeInsets.only(left : 20, right :20.0), | |
child: TextField( | |
textAlign: TextAlign.center, | |
style: TextStyle( | |
color: Colors.blueGrey, | |
fontSize: 16, | |
fontWeight: FontWeight.normal), | |
decoration: new InputDecoration( | |
focusedBorder: OutlineInputBorder( |
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
Center(child: Container(height:100, width: 100,child: CircularProgressIndicator())) |
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:cached_network_image/cached_network_image.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@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
import 'package:flutter/material.dart'; | |
import 'package:cached_network_image/cached_network_image.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@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
import 'dart:io'; | |
import 'dart:async'; | |
import 'package:cloud_firestore/cloud_firestore.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:firebase_messaging/firebase_messaging.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:calendar/mixin/MixinFunctions.dart'; | |
import 'package:calendar/mixin/mixinSharedPreferences.dart'; |
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
Future<bool> check(BuildContext context, String otp) async { | |
try { | |
final result = await InternetAddress.lookup('google.com'); | |
if (result.isNotEmpty && result[0].rawAddress.isNotEmpty) { | |
print('connected'); | |
connected = true; | |
// verifyRequest(context, otp); | |
} | |
} on SocketException catch (_) { | |
connected = false; |