From 89a0d2ac1130381187cc442e125e9d2c9654c4ab Mon Sep 17 00:00:00 2001 From: rajkaranswain Date: Wed, 6 Jan 2021 11:02:21 +0530 Subject: [PATCH] check --- firstapp/.vscode/launch.json | 13 +++++++++++++ firstapp/lib/main.dart | 10 +++++----- 2 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 firstapp/.vscode/launch.json diff --git a/firstapp/.vscode/launch.json b/firstapp/.vscode/launch.json new file mode 100644 index 0000000..e94cd60 --- /dev/null +++ b/firstapp/.vscode/launch.json @@ -0,0 +1,13 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "firstapp", + "request": "launch", + "type": "dart" + } + ] +} \ No newline at end of file diff --git a/firstapp/lib/main.dart b/firstapp/lib/main.dart index c654d51..c8f7c55 100644 --- a/firstapp/lib/main.dart +++ b/firstapp/lib/main.dart @@ -9,13 +9,13 @@ void main() => runApp(MyApp()); class MyApp extends StatelessWidget { //MyApp is the core class - var questionindex = 0 ; - //it cant be called inside the build because it will reset when it is called repeatedly - void answerquestion() - { - questionindex+=1; + var questionindex = 0; + //it cant be called inside the build because it will reset when it is called repeatedl + void answerquestion() { + questionindex += 1; print('Answer chosen'); } + @override Widget build(BuildContext context) { var question = ['whats your favraite colour', 'what is your fav animal'];