Image.network

Image.network

Image.network(“https://pub.dartlang.org/static/img/dart-logo.svg”);

açıklama

Bir URL’den çekerek resmi gösterir.

konum

MaterialApp({ title,theme, home: Scaffold({ appBar, body: Center(child:Image.network("https://pub.dartlang.org/static/img/dart-logo.svg")), }), })

parametreler

 Image.network("https://pub.dartlang.org/static/img/dart-logo.svg");

örnek uygulama

network-image-ornn
 

import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    var title = 'Web Images';

    return MaterialApp(
      title: title,
      home: Scaffold(
        appBar: AppBar(
          title: Text(title),
        ),
        body: Image.network(
          'https://picsum.photos/250?image=9',
        ),
      ),
    );
  }
}

Bir cevap yazın

KAPAT
%d blogcu bunu beğendi: