Last active
September 28, 2022 04:12
-
-
Save bwnyasse/6723200aeaf16672df6bf3ab99f3f139 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Dart & Flutter - Training | |
| * | |
| * Copyright (c) Boris-Wilfried Nyasse | |
| * All rights reserved | |
| */ | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| title: 'Formation Dart & Flutter', | |
| theme: ThemeData( | |
| primarySwatch: Colors.blue, | |
| ), | |
| home: MyHomePage(), | |
| ); | |
| } | |
| } | |
| class MyHomePage extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return Scaffold( | |
| appBar: AppBar( | |
| title: const Text('Comprendre le OverflowBox'), | |
| ), | |
| body: Center( | |
| child: OverflowBox( | |
| minWidth: 0.0, | |
| minHeight: 0.0, | |
| maxWidth: double.infinity, | |
| maxHeight: double.infinity, | |
| child: Container( | |
| color: Colors.red, | |
| width: 4000, | |
| height: 50, | |
| ), | |
| ), | |
| ), | |
| ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment