Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter_web/material.dart';
- import 'package:flutter_web_test/flutter_web_test.dart';
- import 'package:flutter_web_ui/ui.dart' as ui;
- class MyWidget extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Row(
- children: [
- BlueBox(),
- Flexible(
- fit: FlexFit.tight,
- flex: 1,
- child: BlueBox(),
- ),
- Flexible(
- fit: FlexFit.tight,
- flex: 2,
- child: BlueBox(),
- ),
- ],
- );
- }
- }
- class BlueBox extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Container(
- width: 50,
- height: 50,
- decoration: BoxDecoration(
- color: Colors.blue,
- border: Border.all(),
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement