File tree Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import 'package:gsy_github_app_flutter/common/utils/navigator_utils.dart';
1111import 'package:gsy_github_app_flutter/widget/diff_scale_text.dart' ;
1212import 'package:gsy_github_app_flutter/widget/mole_widget.dart' ;
1313import 'package:redux/redux.dart' ;
14+ import 'package:rive/rive.dart' ;
1415
1516/**
1617 * 欢迎页
@@ -41,7 +42,7 @@ class _WelcomePageState extends State<WelcomePage> {
4142
4243 ///防止多次进入
4344 Store <GSYState > store = StoreProvider .of (context);
44- new Future .delayed (const Duration ( milliseconds: 500 ), () {
45+ new Future .delayed (const Duration (milliseconds: 500 ), () {
4546 setState (() {
4647 text = "Welcome" ;
4748 fontSize = 60 ;
@@ -94,14 +95,11 @@ class _WelcomePageState extends State<WelcomePage> {
9495 child: Mole (),
9596 ),
9697 new Align (
97- alignment: Alignment .bottomCenter ,
98+ alignment: Alignment ( 0.0 , . 9 ) ,
9899 child: new Container (
99100 width: size,
100101 height: size,
101- child: new FlareActor ("static/file/flare_flutter_logo_.flr" ,
102- alignment: Alignment .topCenter,
103- fit: BoxFit .fill,
104- animation: "Placeholder" ),
102+ child: RiveAnimation .asset ('static/file/launch.riv' ),
105103 ),
106104 )
107105 ],
Original file line number Diff line number Diff line change @@ -772,6 +772,13 @@ packages:
772772 url: "https://pub.flutter-io.cn"
773773 source: hosted
774774 version: "5.0.0"
775+ rive:
776+ dependency: "direct main"
777+ description:
778+ name: rive
779+ url: "https://pub.flutter-io.cn"
780+ source: hosted
781+ version: "0.9.0"
775782 rxdart:
776783 dependency: "direct main"
777784 description:
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ dependencies:
4040 webview_flutter : 3.0.0
4141 # bezier: ^1.1.5
4242 flare_flutter : ^3.0.2
43+ rive : 0.9.0
4344 # 固定版本
4445 flutter_redux : 0.10.0
4546 rxdart : 0.27.3
You can’t perform that action at this time.
0 commit comments