1
0
mirror of https://github.com/stonega/tsacdop synced 2025-02-23 06:47:43 +01:00
stonegate 01a9641291
null safety & material you (#64)
* Migrate to null safety

*  update theme

* ♻️ code clean

* feat: update just audio

* feat: intgrate material you design

* fix: remove unused null check

* fix: remove unused null check

* feat: update setting pages to material you

* fix: update material you theme

*  support use wallpaper theme

* 🎨 code format

* fix: set boost valumn
2022-07-31 18:34:24 +08:00

46 lines
1.4 KiB
Dart

import 'package:flutter/material.dart';
import 'package:flare_flutter/flare_actor.dart';
import '../util/extension_helper.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.start,
children: <Widget>[
Container(
height: 200,
alignment: Alignment.center,
padding: EdgeInsets.fromLTRB(40, context.paddingTop + 20, 40, 20),
child: Text(
context.s.introSecondPage,
style: TextStyle(fontSize: 30, color: Colors.white),
),
),
SizedBox(
height: context.width * 3 / 4,
child: FlareActor(
'assets/add.flr',
isPaused: false,
alignment: Alignment.center,
animation: 'add',
fit: BoxFit.cover,
)),
],
),
),
);
}
}