Skip to content

Instantly share code, notes, and snippets.

@rayliverified
Created December 28, 2024 21:07
Show Gist options
  • Save rayliverified/ddcaadd06510cb313ecfd123f014aaa9 to your computer and use it in GitHub Desktop.
Save rayliverified/ddcaadd06510cb313ecfd123f014aaa9 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'dart:math';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(
title: 'MyApp Demo',
debugShowCheckedModeBanner: false,
home: Scaffold(
body: Widget(),
),
);
}
}
class SampleWidget extends StatelessWidget {
const SampleWidget({super.key});
@override
Widget build(BuildContext context) {
return Container(
width: 430,
height: 932,
clipBehavior: Clip.hardEdge,
decoration: const BoxDecoration(
color: Colors.white,
),
child: SizedBox(
width: double.infinity,
child: Stack(
clipBehavior: Clip.none,
children: [
Positioned(
left: 0,
top: 0,
child: Container(
width: 430,
height: 932,
clipBehavior: Clip.hardEdge,
decoration: const BoxDecoration(
color: Colors.white,
),
),
),
Positioned(
left: 0,
top: 0,
child: Container(
width: 430,
height: 932,
clipBehavior: Clip.hardEdge,
decoration: const BoxDecoration(
color: Color(0xC6E3ECE4),
),
),
),
Positioned(
left: 296,
top: 811,
child: Container(
width: 91,
height: 52,
clipBehavior: Clip.hardEdge,
decoration: BoxDecoration(
color: const Color(0xFF1B5A2F),
borderRadius: BorderRadius.circular(180),
),
child: Stack(
clipBehavior: Clip.none,
children: [
Positioned(
left: 34,
top: 8,
child: Image.network(
'https://storage.googleapis.com/codeless-app.appspot.com/uploads%2Fimages%2F0RkZBkmF_lKAtrcXmXF2%2Faf51b001-528c-4040-815b-26b746bb2415.png',
width: 21,
height: 37,
fit: BoxFit.contain,
),
)
],
),
),
),
Positioned(
left: 1,
top: 0,
child: Image.network(
'https://storage.googleapis.com/codeless-app.appspot.com/uploads%2Fimages%2F0RkZBkmF_lKAtrcXmXF2%2F37822017-d9e8-4085-b98b-59d179230007.png',
width: 428,
height: 53,
fit: BoxFit.contain,
),
),
Positioned(
left: 69,
top: 465,
child: SizedBox(
width: 290,
child: Text(
'مرحباً بكم في تطبيق نُمو',
textAlign: TextAlign.center,
style: GoogleFonts.getFont(
'Almarai',
color: Colors.black,
fontSize: 24,
fontWeight: FontWeight.bold,
),
),
),
),
Positioned(
left: 112,
top: 110,
child: Image.network(
'https://firebasestorage.googleapis.com/v0/b/codeless-app.appspot.com/o/projects%2F0RkZBkmF_lKAtrcXmXF2%2Fa1a76870a7c23607e00dea68a9ec12694a0dfa0eNMU-removebg%201.png?alt=media&token=0c84ef0a-3f87-4f38-be8d-aafb27100c92',
width: 224,
height: 337,
fit: BoxFit.cover,
),
),
Positioned(
left: 88,
top: 286,
child: Transform.rotate(
angle: 269 * pi / 180,
child: Text(
'نــمـو',
style: GoogleFonts.getFont(
'Almarai',
color: Colors.black,
fontSize: 60,
fontWeight: FontWeight.w800,
),
),
),
),
Positioned(
left: 130,
top: 262,
child: Container(
width: 10,
height: 10,
clipBehavior: Clip.hardEdge,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(5),
),
),
),
Positioned(
left: 127,
top: 329,
child: Transform.rotate(
angle: 269 * pi / 180,
child: SizedBox(
width: 50,
height: 76,
child: Text(
'و',
style: GoogleFonts.getFont(
'Almarai',
color: Colors.white,
fontSize: 64,
fontWeight: FontWeight.w800,
),
),
),
),
),
Positioned(
left: 62,
top: 558,
child: Image.network(
'https://storage.googleapis.com/codeless-app.appspot.com/uploads%2Fimages%2F0RkZBkmF_lKAtrcXmXF2%2Ff4ec1a87-68a6-4851-b9cc-fc28016be9fb.png',
width: 308,
height: 57,
fit: BoxFit.contain,
),
),
Positioned(
left: 86,
top: 569,
child: SizedBox(
width: 258,
height: 35,
child: Text(
'دخول الجهات الحكومية',
textAlign: TextAlign.center,
style: GoogleFonts.getFont(
'Almarai',
color: Colors.white,
fontSize: 24,
fontWeight: FontWeight.w800,
),
),
),
),
Positioned(
left: 61,
top: 651,
child: Image.network(
'https://storage.googleapis.com/codeless-app.appspot.com/uploads%2Fimages%2F0RkZBkmF_lKAtrcXmXF2%2F507712e6-01d9-49ba-9981-e254db9c8506.png',
width: 308,
height: 57,
fit: BoxFit.contain,
),
),
Positioned(
left: 85,
top: 662,
child: SizedBox(
width: 258,
height: 35,
child: Text(
'دخول كَمُستخدم',
textAlign: TextAlign.center,
style: GoogleFonts.getFont(
'Almarai',
color: Colors.white,
fontSize: 24,
fontWeight: FontWeight.w800,
),
),
),
)
],
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment