You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.7 KiB
65 lines
1.7 KiB
import 'package:flutter/material.dart';
|
|
import 'package:hadi_hoda_flutter/common_ui/resources/my_assets.dart';
|
|
import 'package:hadi_hoda_flutter/common_ui/theme/my_theme.dart';
|
|
import 'package:hadi_hoda_flutter/core/utils/my_image.dart';
|
|
import 'package:hadi_hoda_flutter/core/utils/screen_size.dart';
|
|
|
|
class IntroPage extends StatelessWidget {
|
|
const IntroPage({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(backgroundColor: context.noColor),
|
|
extendBodyBehindAppBar: true,
|
|
body: DecoratedBox(
|
|
decoration: BoxDecoration(
|
|
image: DecorationImage(
|
|
image: AssetImage(MyAssets.backgroundIntro),
|
|
fit: BoxFit.cover,
|
|
),
|
|
),
|
|
child: SizedBox(
|
|
width: context.widthScreen,
|
|
height: context.heightScreen,
|
|
child: Stack(
|
|
alignment: Alignment.center,
|
|
children: [
|
|
_name(),
|
|
_bottomBtns(),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
|
|
Positioned _name() {
|
|
return Positioned(
|
|
top: 130,
|
|
child: MyImage(
|
|
image: MyAssets.hadiHoda,
|
|
width: 220,
|
|
height: 220,
|
|
fit: BoxFit.cover,
|
|
),
|
|
);
|
|
}
|
|
|
|
Positioned _bottomBtns() {
|
|
return Positioned(
|
|
bottom: 20,
|
|
left: 20,
|
|
right: 20,
|
|
child: Row(
|
|
crossAxisAlignment: CrossAxisAlignment.end,
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
children: [
|
|
MyImage(image: MyAssets.musicOn, height: 60, width: 60),
|
|
MyImage(image: MyAssets.start, height: 80, width: 80),
|
|
MyImage(image: MyAssets.theme, height: 60, width: 60),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|