2020-04-06 14:18:08 +02:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flare_flutter/flare_actor.dart';
|
2020-07-22 11:34:32 +02:00
|
|
|
import '../util/extension_helper.dart';
|
2020-04-06 14:18:08 +02:00
|
|
|
|
|
|
|
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,
|
2020-06-03 14:39:15 +02:00
|
|
|
padding:
|
|
|
|
EdgeInsets.only(top: 20, bottom: 20, left: 40, right: 40),
|
2020-04-06 14:18:08 +02:00
|
|
|
child: Text(
|
2020-07-06 11:50:20 +02:00
|
|
|
context.s.introSecondPage,
|
2020-04-06 14:18:08 +02:00
|
|
|
style: TextStyle(fontSize: 30, color: Colors.white),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
2020-06-03 14:39:15 +02:00
|
|
|
height: context.width * 3 / 4,
|
2020-04-06 14:18:08 +02:00
|
|
|
// color: Colors.red,
|
|
|
|
child: FlareActor(
|
|
|
|
'assets/add.flr',
|
|
|
|
isPaused: false,
|
|
|
|
alignment: Alignment.center,
|
|
|
|
animation: 'add',
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
)),
|
|
|
|
Spacer(),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|