Skip to content

Instantly share code, notes, and snippets.

@rayliverified
Created January 1, 2025 05:47
Show Gist options
  • Save rayliverified/7ec57f869b0d26f2fd7baeff573d9f54 to your computer and use it in GitHub Desktop.
Save rayliverified/7ec57f869b0d26f2fd7baeff573d9f54 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
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: HomePage(),
),
);
}
}
class HomePage extends StatelessWidget {
const HomePage({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: 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: 62,
top: 615,
child: Image.network(
'https://storage.googleapis.com/codeless-app.appspot.com/uploads%2Fimages%2F0RkZBkmF_lKAtrcXmXF2%2F0f9ababf-db16-4296-a76c-35be5ae62db1.png',
width: 308,
height: 57,
fit: BoxFit.contain,
),
),
Positioned(
left: 86,
top: 626,
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: 59,
top: 725,
child: Image.network(
'https://storage.googleapis.com/codeless-app.appspot.com/uploads%2Fimages%2F0RkZBkmF_lKAtrcXmXF2%2F363d1fed-9c5d-4fbc-b718-3fb63745567d.png',
width: 308,
height: 57,
fit: BoxFit.contain,
),
),
Positioned(
left: 83,
top: 736,
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: 25,
top: 67,
child: Image.network(
'https://firebasestorage.googleapis.com/v0/b/codeless-app.appspot.com/o/projects%2F0RkZBkmF_lKAtrcXmXF2%2Fbd1b913b4d97a6fcc837a15022dc4de7e8684c49NMU_Logo%201.png?alt=media&token=530fb9f5-0f43-4934-aa44-2ef66089233a',
width: 369,
height: 381,
fit: BoxFit.cover,
),
),
Positioned(
left: 0,
top: 0,
child: Container(
width: 430,
height: 44,
clipBehavior: Clip.hardEdge,
decoration: const BoxDecoration(
color: Color(0xFF525452),
),
child: Stack(
clipBehavior: Clip.none,
children: [
Positioned(
left: 22,
top: 14,
child: Image.network(
'https://storage.googleapis.com/codeless-app.appspot.com/uploads%2Fimages%2F0RkZBkmF_lKAtrcXmXF2%2F6b137879-f9d1-47be-b3ca-c5cdee8b2d3c.png',
width: 385,
height: 16,
fit: BoxFit.contain,
),
)
],
),
),
)
],
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment