|
| 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 | +classSplashPageextendsStatelessWidget { |
| 7 | +SplashPage({Key? key}):super(key: key); |
| 8 | + |
| 9 | +final constantColor=ConstantColor(); |
| 10 | + |
| 11 | +@override |
| 12 | +Widgetbuild(BuildContext context) { |
| 13 | +final mediaQueryData=MediaQuery.of(context); |
| 14 | +final widthScreen= mediaQueryData.size.width; |
| 15 | +returnScaffold( |
| 16 | + backgroundColor: constantColor.primaryColor500, |
| 17 | + body:Center( |
| 18 | + child:SvgPicture.asset( |
| 19 | +AssetSvg.logoFlutterNews, |
| 20 | + width: widthScreen/2, |
| 21 | + ), |
| 22 | + ), |
| 23 | + ); |
| 24 | + } |
| 25 | +} |