mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-05-21 06:46:23 +08:00
25 lines
572 B
Dart
25 lines
572 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class UnconstrainedBoxDemo extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return UnconstrainedBox(
|
|
constrainedAxis: Axis.vertical,
|
|
textDirection: TextDirection.rtl,
|
|
child: Row(
|
|
children: <Widget>[
|
|
Container(
|
|
width: 100.0,
|
|
height: 100.0,
|
|
color: Color(0xfff48fb1),
|
|
child: Text(
|
|
"data",
|
|
style: TextStyle(color: Colors.white),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|