Image Widget in Flutter

Here is the simple program for printing the Image widget in Flutter.

Source Code

import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';

void main() {
    home: MyApp(),

class MyApp extends StatefulWidget {
  _State createState() => _State();

class _State extends State<MyApp> {
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Image'),
      body: Container(
        height: 300,
        width: double.infinity,
        child: Image(
          image: AssetImage('images/back.png'),
          fit: BoxFit.cover,
To download raw file Click Here

Learn All in Tamil © Designed & Developed By Tutor Joes