File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
lib/feature/presentation/page/splash Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ import 'package:flutter/material.dart' ;
2
+ import 'package:flutter_news_app/core/util/constant_value.dart' ;
3
+ import 'package:flutter_news_app/core/util/images.dart' ;
4
+ import 'package:flutter_svg/flutter_svg.dart' ;
5
+
6
+ class SplashPage extends StatelessWidget {
7
+ SplashPage ({Key ? key}) : super (key: key);
8
+
9
+ final constantColor = ConstantColor ();
10
+
11
+ @override
12
+ Widget build (BuildContext context) {
13
+ final mediaQueryData = MediaQuery .of (context);
14
+ final widthScreen = mediaQueryData.size.width;
15
+ return Scaffold (
16
+ backgroundColor: constantColor.primaryColor500,
17
+ body: Center (
18
+ child: SvgPicture .asset (
19
+ AssetSvg .logoFlutterNews,
20
+ width: widthScreen / 2 ,
21
+ ),
22
+ ),
23
+ );
24
+ }
25
+ }
You can’t perform that action at this time.
0 commit comments