-
Notifications
You must be signed in to change notification settings - Fork 0
/
5.dart
36 lines (35 loc) · 885 Bytes
/
5.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import 'package:flutter/material.dart';
void main() {
runApp(
Column(
textDirection: TextDirection.ltr,
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: const <Widget>[
Expanded(
child: FittedBox(
fit: BoxFit.fitHeight,
child: FlutterLogo(),
),
),
Expanded(
child: Image(
image: NetworkImage(
'https://picsum.photos/250?image=10',
),
),
),
Text(
'Google Flutter.',
textDirection: TextDirection.ltr,
style: TextStyle(
color: Colors.blue,
fontSize: 20,
fontWeight: FontWeight.bold,
backgroundColor: Colors.white,
),
),
],
),
);
}