Answers for "how to use fitted box"

-1

fittedBox in flutter

import 'package:flutter/material.dart';
void main()
{
  runApp(MaterialApp(
    title: 'Androidmonks',
    home: Scaffold(
      appBar: AppBar(title: Text("Androidmonks"),),
      body: ListView(
            children: <Widget>[
              FittedBox(child: Row(
                children: <Widget>[
                  Container(
                    child: Image.network("https://images.pexels.com/photos/414612/pexels-photo-414612.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500"),
                  ),
                  Container(
                    child: Text("This is a sample text to understand FittedBox widget"),
                  )
                ],
              ),)
            ],
        ),
    ),
  ));
  
}
Posted by: Guest on August-29-2020

Code answers related to "how to use fitted box"

Code answers related to "Dart"

Browse Popular Code Answers by Language