forked from ibhavikmakwana/FlutterPlayground
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRotatedBox.dart
More file actions
43 lines (39 loc) · 1.05 KB
/
RotatedBox.dart
File metadata and controls
43 lines (39 loc) · 1.05 KB
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
37
38
39
40
41
42
43
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
class RotatedBoxExample extends StatelessWidget {
final String title;
RotatedBoxExample(this.title);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(title),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
RotatedBox(
child: Text("Hello World!"),
quarterTurns: 1,
),
RotatedBox(
child: Text("Hello World!"),
quarterTurns: 2,
),
RotatedBox(
child: Text("Hello World!"),
quarterTurns: 3,
),
RotatedBox(
child: Text("Hello World!"),
quarterTurns: 4,
),
],
),
),
);
}
}