Field '_areas' should be initialized because its type 'List<Area>' doesn't allow null

Advertisements Flutter shows error Non-nullable instance field ‘_areas’ must be initialized. Maybe this is because of not defining null in lists areas what when defining null Like List? _areas; it shows an error on the index Error: Field ‘_areas’ should be initialized because its type ‘List’ doesn’t allow null. Error Line: List _areas; Here is… Read More Field '_areas' should be initialized because its type 'List<Area>' doesn't allow null

BottomSheetScaffold is overriding the background color of its parent

Advertisements I’m trying out BottomSheetScaffold and I just found a strange behavior (maybe a bug) when using it. I put it inside a Box { } that has a cyan background color: composable(route = "my_route") { Box( modifier = Modifier .fillMaxSize() .background(color = Color.Cyan), ) { val coroutineScope = rememberCoroutineScope() val bottomSheetScaffoldState = rememberBottomSheetScaffoldState() BottomSheetScaffold(… Read More BottomSheetScaffold is overriding the background color of its parent

How to Create a Progress Indicator for WebView in Flutter

Advertisements import ‘package:flutter/material.dart’; import ‘package:webview_flutter/webview_flutter.dart’; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( body: WebViewClass() ) ); } } class WebViewClass extends StatefulWidget { WebViewState createState() => WebViewState(); } class WebViewState extends State<WebViewClass>{ num position = 1 ; final key = UniqueKey(); doneLoading(String A) {… Read More How to Create a Progress Indicator for WebView in Flutter