diff --git a/assets/icons/logo.png b/assets/icons/logo.png new file mode 100644 index 0000000..132f262 Binary files /dev/null and b/assets/icons/logo.png differ diff --git a/lib/screens/homescreen.dart b/lib/screens/homescreen.dart index 7f68997..818a3a4 100644 --- a/lib/screens/homescreen.dart +++ b/lib/screens/homescreen.dart @@ -4,16 +4,19 @@ import 'package:plaso_connect/screens/selectoxygen.dart'; import 'package:plaso_connect/screens/selectplasma.dart'; import 'package:plaso_connect/screens/statdashboard.dart'; import 'package:plaso_connect/widgets/boxdecoration.dart'; +import 'package:plaso_connect/widgets/logowidget.dart'; class HomeScreen extends StatelessWidget { @override Widget build(BuildContext context) { + Size size = MediaQuery.of(context).size; return SafeArea( child: Scaffold( body: Column( - mainAxisAlignment: MainAxisAlignment.center, - crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + crossAxisAlignment: CrossAxisAlignment.center, children: [ + logoWidget(size: size), Padding( padding: const EdgeInsets.only(left: 30, bottom: 15), child: Text( diff --git a/lib/widgets/logowidget.dart b/lib/widgets/logowidget.dart new file mode 100644 index 0000000..079ab39 --- /dev/null +++ b/lib/widgets/logowidget.dart @@ -0,0 +1,30 @@ +import 'package:flutter/material.dart'; +import 'package:plaso_connect/constants/colors.dart'; + +Widget logoWidget({required Size size}) { + return Container( + margin: EdgeInsets.symmetric(vertical: 30), + height: size.width * 0.35, + width: size.width * 0.35, + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(1000), + image: DecorationImage( + image: AssetImage("assets/icons/logo.png"), + fit: BoxFit.fill, + ), + boxShadow: [ + BoxShadow( + color: klightShadowForLight, + offset: Offset(-4.0, -4.0), + blurRadius: 7.0, + ), + BoxShadow( + color: kdarkShadowForLight, + offset: Offset(4.0, 4.0), + blurRadius: 7.0, + ), + ], + color: Color(0xFFEFEEEE), + ), + ); +} diff --git a/pubspec.yaml b/pubspec.yaml index e747fdd..e12779d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -54,6 +54,7 @@ flutter: # To add assets to your application, add an assets section, like this: assets: - assets/images/ + - assets/icons/ # An image asset can refer to one or more resolution-specific "variants", see # https://flutter.dev/assets-and-images/#resolution-aware.