Flutter desde cero (2023) | 5.2 - Imágenes y recursos internos
Giampiero Fermini Castillo@giampierofermini
Hola, buenas!
me está encantando el curso pero tengo un problema, no puedo cargar imágenes. Incluso en el dartpad no funciona.
1// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file 2// for details. All rights reserved. Use of this source code is governed by a 3// BSD-style license that can be found in the LICENSE file. 4 5import 'package:flutter/material.dart'; 6 7void main() => runApp(MyApp()); 8 9class MyApp extends StatelessWidget { 10 [](https://ed.team/u/override) 11 Widget build(BuildContext context) { 12 return const MaterialApp( 13 title: 'Flutter Demo', 14 15 home: MyHomePage(), 16 ); 17 } 18} 19 20class MyHomePage extends StatelessWidget { 21 22const MyHomePage({super.key}); 23 24 [](https://ed.team/u/override) 25 Widget build(BuildContext context) { 26 return Image.network('https://www.dogalize.com/wp-content/uploads/2017/06/La-sverminazione-e-la-pulizia-del-cucciolo-del-cane-2-800x400-800x400.jpg',); 27 28 29} 30}
Cuando intento insertar una imagen desde una url siempre se para el debugger y tengo que darle a la flechita para que singa corriendo el programa


Escribe una respuesta