-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathbasic.dart
More file actions
27 lines (24 loc) · 705 Bytes
/
basic.dart
File metadata and controls
27 lines (24 loc) · 705 Bytes
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
import 'dart:math' as math;
import 'package:flutter/widgets.dart';
import 'package:footage/footage.dart';
class BasicScene extends StatelessWidget {
const BasicScene({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
final config = context.video.config;
final time = context.video.time();
return Center(
child: Transform.rotate(
angle: math.pi * 2 * Curves.easeInOut.transform(time),
child: Text(
'Hello world\n${config.width}x${config.height}',
textAlign: TextAlign.center,
style: const TextStyle(
fontFamily: 'Roboto',
fontSize: 82,
),
),
),
);
}
}