Skip to content

Instantly share code, notes, and snippets.

@bwnyasse
Last active September 28, 2022 04:12
Show Gist options
  • Select an option

  • Save bwnyasse/6723200aeaf16672df6bf3ab99f3f139 to your computer and use it in GitHub Desktop.

Select an option

Save bwnyasse/6723200aeaf16672df6bf3ab99f3f139 to your computer and use it in GitHub Desktop.
/*
* 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