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
Question('The Mahabharata is a part of The Bhagavad Gita', false), | |
Question('The National Security Guards are also known as Black Cat Commandos due to their uniforms.', true), | |
Question('Approximately one quarter of human bones are in the feet.', true), | |
Question('The Census in India occur after every 8 years.', false), | |
Question('The Indian Penal Code came into operation on 1st January, 1862', true), | |
Question('It is illegal to pee in the Ocean in Portugal.', true), | |
Question( | |
'No piece of square dry paper can be folded in half more than 7 times.', | |
false), | |
Question( |
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/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(Quizlr()); | |
} | |
class Quizlr extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { |
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'; | |
class InputPage extends StatefulWidget { | |
@override | |
_InputPageState createState() => _InputPageState(); | |
} | |
class _InputPageState extends State<InputPage> { | |
Container dummy = Container( | |
margin: EdgeInsets.all(12), |
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:font_awesome_flutter/font_awesome_flutter.dart'; | |
class InputPage extends StatefulWidget { | |
@override | |
_InputPageState createState() => _InputPageState(); | |
} | |
class _InputPageState extends State<InputPage> { | |
int gender; // Male = 0, Female = 1 |
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
[ | |
{ | |
"storyNumber": 0, | |
"story": "You have gone on a trek with your friends but got lost in the forest. You don't have any devices and it is now pitch dark. You are wandering in hope to see another human, and suddenly you see a wooden cabin with some fire light. Would you go and knock the door of the cabin?\".", | |
"choice1": "I'll go to the cabin and ask for help", | |
"choice1_result": 1, | |
"choice2": "I'll ignore the cabin because who possibly can live in the middle of a Jungle", | |
"choice2_result": 3 | |
}, | |
{ |
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:convert'; | |
import 'package:http/http.dart'; | |
class NetworkHelper { | |
String url; | |
final String api_key = '4f7b32dc58f4ac156caec77d106358f8'; | |
NetworkHelper(this.url); | |
// 'https://api.openweathermap.org/daa/2.5/weather?lat=${location.latitude}&lon=${location.longitude}&appid=$api_key' |
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:flutter_test/flutter_test.dart"; | |
import 'package:tic_tac_toe_starter/gamelogic.dart'; | |
void main() { | |
test("test fullBoard", () { | |
List<List<Icon>> board = [ | |
[null, null, null], | |
[null, null, null], | |
[null, null, null] |
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'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Animation Demo', | |
home: 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/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
import 'gamelogic.dart'; | |
//import 'package:flutter/animation.dart'; | |
void main() { | |
// List<List<Icon>> board = [ | |
// [null, null, null], |
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'; | |
enum Token { | |
x, o | |
} | |
List<List<Token>> board = [ | |
[null, null, null], | |
[null, null, null], |
OlderNewer