Category : flutter

I used the json serialization dependency but unfortunately the g.dart files are not getting genereated. I tried some of suggestions from stack but nothing worked.When I ran flutter pub run build_runner build ,android studio terminal showed this error : ‘flutter’ is not recognized as an internal or external command,operable program or batch file. Then I ..

Read more

import ‘dart:ui’; import ‘package:flutter/material.dart’; import ‘./Match.dart’; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { final List<Match> match = [ Match( sAingsone1: 298, sAingstwo2: 174, sAtotalscore: 472, wAingsone1: 149, wAingstwo2: 165, wAtotalscore: 324, over: 60, sAwon: 158, ), Match( sAingsone1: 398, sAingstwo2: 474, sAtotalscore: 272, wAingsone1: 249, wAingstwo2: 365, wAtotalscore: 394, over: 70, sAwon: 358, ..

Read more

I have been using Flutter for a while now. I am just trying to develop a Flutter Windows application recently. While I have shared preferences for flutter mobile app, there seems no alternative for Flutter Windows desktop application. Is there a way to use share pref in desktop application? Or is there any other library ..

Read more

Problem: "RenderPhysicalModel object was given an infinite size during layout. The relevant error-causing widget was Scaffold and List.View." line 35 and 38 I am fairly new at coding btw code: import ‘package:cloud_firestore/cloud_firestore.dart’; import ‘package:flutter/material.dart’; import ‘Songspage.dart’; class Browse extends StatefulWidget { @override _BrowseState createState() => _BrowseState(); } class _BrowseState extends State<Browse> { Future getdata() async ..

Read more

I am trying to install flutter to my new computer. Everything seems fine in flutter doctor but when i run my app I get an error. Execution failed for task ‘:app:compileDebugJavaWithJavac’. > java.lang.IllegalAccessError: class org.gradle.internal.compiler.java.ClassNameCollector (in unnamed module @0x16545f8f) cannot access class com.sun.tools.javac.code.Symbol$TypeSymbol (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.code to unnamed ..

Read more