skip to Main Content

Flutter – Image file cannot resize the width

I don't know why I set in my container or Image.file the height and width with a BoxFit.fill and it's not working Stack( children: [ Column( crossAxisAlignment: CrossAxisAlignment.start, mainAxisSize: MainAxisSize.min, children: [ [...] Padding( padding: ..., child: Column( crossAxisAlignment: CrossAxisAlignment.start,…

VIEW QUESTION

Flutter – build_runner stop to working after update

When I try to run dart run build_runner build --delete-conflicting-output I have the following uotput: Failed to build build_runner:build_runner: ../../../.pub-cache/hosted/pub.dev/macros-0.1.2-main.4/lib/src/bootstrap.dart:5:1: Error: Error when reading '../../../fvm/versions/stable/bin/cache/dart-sdk/pkg/_macros/lib/src/bootstrap.dart': No such file or directory export 'package:_macros/src/bootstrap.dart'; ^ ../../../.pub-cache/hosted/pub.dev/macros-0.1.2-main.4/lib/src/executor.dart:5:1: Error: Error when reading '../../../fvm/versions/stable/bin/cache/dart-sdk/pkg/_macros/lib/src/executor.dart': No…

VIEW QUESTION

Flutter – Add validation to date TextFormField

I faced with the problem of validating text fields. Here you need to enter the date in the format dd.mm.yyyy. I also use flutter_multi_formatter package for this form. import 'package:flutter/material.dart'; import 'package:flutter_multi_formatter/formatters/masked_input_formatter.dart'; void main() => runApp(const MyApp()); class MyApp extends…

VIEW QUESTION

Flutter – Failed installing dependencies

[enter image description here](https://i.sstatic.net/V7lRfath.png) I cloned github repository on my android studio but while installing dependencies it is showing error. The current Dart SDK version is 3.5.0. Because mi_card requires SDK version >=2.18.0 <3.5.0, version solving failed it should install…

VIEW QUESTION

Flutter – The body might complete normally, causing 'null' to be returned, but the return type, 'VoidCallback', is a potentially non-nullable type

void deleteProduct(Product product, int index) { adminController.DeleteProduct( context: context, product: product, onSuccess: (){ products.removeAt(index); setState(() {});//refresh page } ); } it show: The body might complete normally, causing 'null' to be returned, but the return type, 'VoidCallback', is a potentially…

VIEW QUESTION
Back To Top
Search