1
0
mirror of https://github.com/stonega/tsacdop synced 2024-12-12 16:39:04 +01:00
tsacdop-podcast-app-android/lib/intro_slider/secondpage.dart
2020-07-06 17:50:20 +08:00

49 lines
1.4 KiB
Dart

import 'package:flutter/material.dart';
import 'package:flare_flutter/flare_actor.dart';
import '../util/context_extension.dart';
class SecondPage extends StatefulWidget {
SecondPage({Key key}) : super(key: key);
@override
_SecondPageState createState() => _SecondPageState();
}
class _SecondPageState extends State<SecondPage> {
@override
Widget build(BuildContext context) {
return Container(
color: Color.fromRGBO(77, 145, 190, 1),
child: Center(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Container(
height: 200,
alignment: Alignment.center,
padding:
EdgeInsets.only(top: 20, bottom: 20, left: 40, right: 40),
child: Text(
context.s.introSecondPage,
style: TextStyle(fontSize: 30, color: Colors.white),
),
),
Container(
height: context.width * 3 / 4,
// color: Colors.red,
child: FlareActor(
'assets/add.flr',
isPaused: false,
alignment: Alignment.center,
animation: 'add',
fit: BoxFit.cover,
)),
Spacer(),
],
),
),
);
}
}