Answers for "constrainedbox flutter"

2

constrainedbox flutter

ConstrainedBox(
            constraints: const BoxConstraints(
              minHeight: 100.0,
              minWidth: 100.0,
            ),
            child: ElevatedButton(
            onPressed: () {  },
            child: Text('Tap Me'),)
          ),
Posted by: Guest on August-29-2021
-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 "constrainedbox flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language