11import 'package:dashboard_reborn/utils/colors.dart' ;
22import 'package:dashboard_reborn/utils/text_styles.dart' ;
3- import 'package:dashboard_reborn/utils/ui_helpers .dart' ;
3+ import 'package:flare_flutter/flare_actor .dart' ;
44import 'package:flutter/material.dart' ;
55import 'package:liquid_swipe/Constants/Helpers.dart' ;
66import 'package:liquid_swipe/liquid_swipe.dart' ;
@@ -15,7 +15,7 @@ class _MyLiquidPageState extends State<MyLiquidPage> {
1515 Widget build (BuildContext context) {
1616 final pages = [
1717 Container (
18- color: MaterialColors .pink ,
18+ color: MyColors .white ,
1919 child: Row (
2020 mainAxisAlignment: MainAxisAlignment .center,
2121 crossAxisAlignment: CrossAxisAlignment .center,
@@ -25,33 +25,24 @@ class _MyLiquidPageState extends State<MyLiquidPage> {
2525 crossAxisAlignment: CrossAxisAlignment .center,
2626 children: < Widget > [
2727 Container (
28- width: 300 ,
29- height: 300 ,
30- child: Container (
31- width: 200.0 ,
32- height: 200.0 ,
33- child: Image .asset (
34- 'assets/icon/icon-legacy.png' ,
35- fit: BoxFit .cover,
36- ),
28+ width: 350 ,
29+ height: 350 ,
30+ child: FlareActor (
31+ 'assets/flare/card.flr' ,
32+ animation: 'animation' ,
3733 ),
3834 ),
39- SizedBox (
40- height: 20.0 ,
41- ),
4235 Text (
43- '<< Swipe in any direction >>' ,
44- style: isThemeCurrentlyDark (context)
45- ? SubHeadingStylesMaterial .light
46- : SubHeadingStylesMaterial .dark,
36+ '<< Swipe >>' ,
37+ style: SubHeadingStylesMaterial .dark,
4738 ),
4839 ],
4940 )
5041 ],
5142 ),
5243 ),
5344 Container (
54- color: MaterialColors .yellow ,
45+ color: MyColors .accent ,
5546 child: Row (
5647 mainAxisAlignment: MainAxisAlignment .center,
5748 crossAxisAlignment: CrossAxisAlignment .center,
@@ -61,33 +52,24 @@ class _MyLiquidPageState extends State<MyLiquidPage> {
6152 crossAxisAlignment: CrossAxisAlignment .center,
6253 children: < Widget > [
6354 Container (
64- width: 300 ,
65- height: 300 ,
66- child: Container (
67- width: 200.0 ,
68- height: 200.0 ,
69- child: Image .asset (
70- 'assets/icon/icon-legacy.png' ,
71- fit: BoxFit .cover,
72- ),
55+ width: 350 ,
56+ height: 350 ,
57+ child: FlareActor (
58+ 'assets/flare/card.flr' ,
59+ animation: 'animation' ,
7360 ),
7461 ),
75- SizedBox (
76- height: 20.0 ,
77- ),
7862 Text (
79- '<< Swipe in any direction >>' ,
80- style: isThemeCurrentlyDark (context)
81- ? SubHeadingStylesMaterial .light
82- : SubHeadingStylesMaterial .dark,
63+ '<< Swipe >>' ,
64+ style: SubHeadingStylesMaterial .dark,
8365 ),
8466 ],
8567 )
8668 ],
8769 ),
8870 ),
8971 Container (
90- color: MaterialColors .green ,
72+ color: MyColors .black ,
9173 child: Row (
9274 mainAxisAlignment: MainAxisAlignment .center,
9375 crossAxisAlignment: CrossAxisAlignment .center,
@@ -97,25 +79,16 @@ class _MyLiquidPageState extends State<MyLiquidPage> {
9779 crossAxisAlignment: CrossAxisAlignment .center,
9880 children: < Widget > [
9981 Container (
100- width: 300 ,
101- height: 300 ,
102- child: Container (
103- width: 200.0 ,
104- height: 200.0 ,
105- child: Image .asset (
106- 'assets/icon/icon-legacy.png' ,
107- fit: BoxFit .cover,
108- ),
82+ width: 350 ,
83+ height: 350 ,
84+ child: FlareActor (
85+ 'assets/flare/card.flr' ,
86+ animation: 'animation' ,
10987 ),
11088 ),
111- SizedBox (
112- height: 20.0 ,
113- ),
11489 Text (
115- '<< Swipe in any direction >>' ,
116- style: isThemeCurrentlyDark (context)
117- ? SubHeadingStylesMaterial .light
118- : SubHeadingStylesMaterial .dark,
90+ '<< Swipe >>' ,
91+ style: SubHeadingStylesMaterial .light,
11992 ),
12093 ],
12194 )
@@ -126,7 +99,7 @@ class _MyLiquidPageState extends State<MyLiquidPage> {
12699
127100 return LiquidSwipe (
128101 pages: pages,
129- initialPage: 1 ,
102+ initialPage: 0 ,
130103 fullTransitionValue: 350.0 ,
131104 enableLoop: true ,
132105 waveType: WaveType .liquidReveal,
0 commit comments