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 FirstPage extends StatefulWidget {
|
|
|
|
FirstPage({Key key}) : super(key: key);
|
|
|
|
|
|
|
|
@override
|
|
|
|
_FirstPageState createState() => _FirstPageState();
|
|
|
|
}
|
|
|
|
|
|
|
|
class _FirstPageState extends State<FirstPage> {
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Scaffold(
|
2020-06-03 14:39:15 +02:00
|
|
|
body: Container(
|
2020-04-06 14:18:08 +02:00
|
|
|
color: Color.fromRGBO(35, 204, 198, 1),
|
|
|
|
child: Center(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: <Widget>[
|
|
|
|
Padding(
|
2020-06-03 14:39:15 +02:00
|
|
|
padding: EdgeInsets.symmetric(vertical: 100),
|
2020-04-06 14:18:08 +02:00
|
|
|
),
|
|
|
|
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/splash.flr',
|
|
|
|
alignment: Alignment.center,
|
|
|
|
animation: 'logo',
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
)),
|
|
|
|
Spacer(),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|