@@ -8,63 +8,67 @@ class HomeLogoWidget extends StatelessWidget {
88
99 @override
1010Widget build (BuildContext context) {
11- return Column (
12- mainAxisAlignment: MainAxisAlignment .center,
13- crossAxisAlignment: CrossAxisAlignment .center,
14- children: [
15- Center (
16- child: animate
17- ? Column (
18- mainAxisSize: MainAxisSize .min,
19- children: [
20- SizedBox (
21- width: 45 ,
22- height: 45 ,
23- child: Lottie .asset (
24- 'assets/tfloading.json' ,
25- repeat: true ,
26- animate: true ,
11+ return FittedBox (
12+ fit: BoxFit .scaleDown,
13+ child: Column (
14+ mainAxisSize: MainAxisSize .min,
15+ mainAxisAlignment: MainAxisAlignment .center,
16+ crossAxisAlignment: CrossAxisAlignment .center,
17+ children: [
18+ Center (
19+ child: animate
20+ ? Column (
21+ mainAxisSize: MainAxisSize .min,
22+ children: [
23+ SizedBox (
24+ width: 45 ,
25+ height: 45 ,
26+ child: Lottie .asset (
27+ 'assets/tfloading.json' ,
28+ repeat: true ,
29+ animate: true ,
30+ ),
31+ ),
32+ const SizedBox (height: 10 ),
33+ Text (
34+ 'THREEFOLD' ,
35+ style: Theme .of (context).textTheme.headlineLarge! .copyWith (
36+ color: Theme .of (context).colorScheme.onSurface,
37+ fontWeight: FontWeight .bold,
38+ ),
39+ ),
40+ ],
41+ )
42+ : SizedBox (
43+ height: 90 ,
44+ child: SvgPicture .asset (
45+ 'assets/TF_logo.svg' ,
46+ alignment: Alignment .center,
47+ colorFilter: ColorFilter .mode (
48+ Theme .of (context).colorScheme.onSurface,
49+ BlendMode .srcIn,
2750 ),
28- ),
29- const SizedBox (height: 10 ),
30- Text (
31- 'THREEFOLD' ,
32- style: Theme .of (context).textTheme.headlineLarge! .copyWith (
33- color: Theme .of (context).colorScheme.onSurface,
34- fontWeight: FontWeight .bold,
35- ),
36- ),
37- ],
38- )
39- : SizedBox (
40- height: 90 ,
41- child: SvgPicture .asset (
42- 'assets/TF_logo.svg' ,
43- alignment: Alignment .center,
44- colorFilter: ColorFilter .mode (
45- Theme .of (context).colorScheme.onSurface,
46- BlendMode .srcIn,
4751 ),
4852 ),
53+ ),
54+ SizedBox (
55+ height: MediaQuery .of (context).size.height * 0.04 ,
56+ width: MediaQuery .of (context).size.width * 0.6 ,
57+ child: Divider (
58+ thickness: 2 ,
59+ color: Theme .of (context).colorScheme.primary,
60+ ),
61+ ),
62+ Text (
63+ 'CONNECT' ,
64+ style: Theme .of (context).textTheme.titleLarge! .copyWith (
65+ color: Theme .of (context).colorScheme.onSurface,
66+ letterSpacing: 10 ,
67+ fontWeight: FontWeight .bold,
4968 ),
50- ),
51- SizedBox (
52- height: MediaQuery .of (context).size.height * 0.04 ,
53- width: MediaQuery .of (context).size.width * 0.6 ,
54- child: Divider (
55- thickness: 2 ,
56- color: Theme .of (context).colorScheme.primary,
5769 ),
58- ),
59- Text (
60- 'CONNECT' ,
61- style: Theme .of (context).textTheme.titleLarge! .copyWith (
62- color: Theme .of (context).colorScheme.onSurface,
63- letterSpacing: 10 ,
64- fontWeight: FontWeight .bold,
65- ),
66- ),
67- ],
70+ ],
71+ ),
6872 );
6973}
7074
0 commit comments