Posts

Showing posts from February, 2021

Flutter Scratch Card

Image
 pubspec name :  extravote description :  A new Flutter project. publish_to :  'none'   version :  1.0.0+1 environment :    sdk :  ">=2.7.0 <3.0.0" dependencies :    flutter :      sdk :  flutter    http :  ^0.12.2    cached_network_image :  ^2.5.0    webview_flutter :  ^1.0.7         cupertino_icons :  ^1.0.2        workmanager :  ^0.2.3       flutter_local_notifications :  ^1.4.4+2    scratcher :  "^1.4.0"       confetti :  ^0.5.4+1 dev_dependencies :    flutter_test :      sdk :  flutter    integration_test :      sdk :  flutter flutter :    uses-material-design :  true    assets :     -  lib/assets/images/    module :    androidX :  true **************************************************************** main.dart import   'package:flutter/material.dart' ; import   'scratch.dart' ; void   main () {    runApp ( MyApp ()); } class   MyApp   extends   StatelessWidget  {    @override    Widget   build ( BuildContext  context) {      return

Quiz App questions from local file

 main.dart import 'package:flutter/material.dart';  import './quiz.dart';  import './result.dart';  void main() => runApp(MyApp());  class MyApp extends StatefulWidget {  @override  State<StatefulWidget> createState() {  return _MyAppState();  }  }  class _MyAppState extends State<MyApp> {  final _questions = const [  {  'questionText': 'Q1. Who created Flutter?',  'answers': [  {'text': 'Facebook', 'score': -2},  {'text': 'Adobe', 'score': -2},  {'text': 'Google', 'score': 10},  {'text': 'Microsoft', 'score': -2},  ],  },  {  'questionText': 'Q2. What is Flutter?',  'answers': [  {'text': 'Android Development Kit', 'score': -2},  {'text': 'IOS Development Kit', 'score': -2},  {'text': 'Web Development Kit