import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override Widget build(BuildContext context) {
return MaterialApp(
home: MyHomePage(),
debugShowCheckedModeBanner: false,
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key key}) : super(key: key);
@override _MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override Widget build(BuildContext context) {
return SafeArea(
child: Scaffold(
body: ListView(
children: <Widget>[
Column(children: <Widget>[
Container(
child: Column(
children: <Widget>[
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Expanded(
child: Text('some huge text some huge text '
'some huge text some huge text '
'some huge text some huge text '
'some huge text some huge text '
'some huge text some huge text '
'some huge text some huge text '
'some huge text some huge text '
'some huge text some huge text '
'some huge text some huge text '
'some huge text some huge text '
'some huge text some huge text '
'some huge text some huge text '
'some huge text some huge text '
'some huge text some huge text '
'some huge text some huge text '
'some huge text some huge text '
'some huge text some huge text '
'some huge text some huge text '
'some huge text some huge text '
'some huge text some huge text '
'some huge text some huge text '
'some huge text some huge text '
'some huge text some huge text ')),
Container(
width: 44,
child: Column(
children: <Widget>[
Container(
width: 44,
height: 44,
decoration: BoxDecoration(
border: Border.all(
color:
Colors.blue,
width: 3,
),
borderRadius: BorderRadius.all(Radius.circular(15)),
),
),
Container(
width: 3,
color:
Colors.red,
height:
20,
// желательно динимачески подстраиваться под текст
),
],
),
),
],
),
],
),
),
])
],
),
),
);
}
}