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.
81 lines
2.0 KiB
81 lines
2.0 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';
|
|
import 'package:hadi_hoda_flutter/core/widgets/about_us_dialog.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: [
|
|
_music(),
|
|
_name(),
|
|
_bottomBtns(context),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
|
|
Positioned _music() {
|
|
return Positioned(
|
|
top: 36,
|
|
right: 16,
|
|
child: MyImage(
|
|
image: MyAssets.musicOn,
|
|
),
|
|
);
|
|
}
|
|
|
|
|
|
Positioned _name() {
|
|
return Positioned(
|
|
top: 146,
|
|
child: MyImage(
|
|
image: MyAssets.hadiHoda,
|
|
size: 232,
|
|
fit: BoxFit.cover,
|
|
),
|
|
);
|
|
}
|
|
|
|
Positioned _bottomBtns(BuildContext context) {
|
|
return Positioned(
|
|
bottom: 40,
|
|
left: 16,
|
|
right: 16,
|
|
child: Row(
|
|
crossAxisAlignment: CrossAxisAlignment.end,
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
children: [
|
|
MyImage(image: MyAssets.language),
|
|
InkWell(child: MyImage(image: MyAssets.start, size: 90),
|
|
onTap: () {
|
|
showAboutUsDialog(context: context);
|
|
},
|
|
),
|
|
MyImage(image: MyAssets.theme),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|