Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

import 'dart:ui';

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_app/home_page.dart';
import 'package:url_launcher/url_launcher.dart';
class ID_card_Durjoy extends StatefulWidget {
@override
_ID_card_DurjoyState createState() => _ID_card_DurjoyState();
}

class _ID_card_DurjoyState extends State<ID_card_Durjoy> {

void customLauncher(command) async{


if (await canLaunch(command)){
launch(command);
}
else{
print(" operation failed");
}
}

@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Colors.teal,
title: Text("ID Card"),
leading: Icon(Icons.menu) ,
actions: <Widget> [
Icon(Icons.search),
SizedBox(width: 10,),
Icon(Icons.notifications),
SizedBox(width: 10,),
Icon(Icons.person),
SizedBox(width: 10,)
],
),
body: Column(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Center(
child: Container(
child: Material(
color: Colors.white70,
elevation: 5.0,
borderRadius: BorderRadius.only(bottomRight:
Radius.circular(5),bottomLeft: Radius.circular(5)),
shadowColor: Colors.black,
child: Row(
children: [
Center(
child: RaisedButton(
child: Icon(Icons.home,
color: Colors.teal,
),
elevation: 5.0,
color: Colors.white70,
highlightColor: Colors.orangeAccent,
onPressed:(){
setState(() {
Navigator.push(context,
MaterialPageRoute(builder:(context){
return Homepage() ;
}));

}
);
}
),

),

SizedBox(
height: 15,
width: 45
),
Text("Excel",
style: TextStyle(
color: Colors.orangeAccent,
fontSize: 20,
fontWeight: FontWeight.bold
),
),
Padding(padding: EdgeInsets.only(left: 5)),
Text("IT",
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
color: Colors.cyan,
),
),
Padding(padding: EdgeInsets.only(left: 5)),
Text("AI",
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
color: Colors.orangeAccent,
),
),
SizedBox(
height: 15,
width: 10,),
Image(image: AssetImage("images/Asset 1.png")),
],
),
),
height: 65,
width: 320,
),

),
Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
SizedBox(
height: 70,
),
Container(
child: Material(
color: Colors.teal,
elevation: 5.0,
borderRadius: BorderRadius.circular(10) ,
shadowColor: Colors.orange,
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
children: [
SizedBox(
height: 15,
),
CircleAvatar(
backgroundImage: AssetImage("images/Mehedi.jpg.jpg",),
radius: 50,
),
SizedBox(
height: 7,
),
Container(
height: 3,
width: 200,
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.centerLeft,
end: Alignment.centerRight,
colors: [Colors.yellow, Colors.orangeAccent]
),
),
),
Text("K. M. MEHEDI HASAN",
style: TextStyle(
fontSize: 15,
fontWeight: FontWeight.bold,
color: Colors.white,
),
),
Text("Trainee Software Engineer",
style: TextStyle(
fontSize: 10,
fontWeight: FontWeight.bold,
color: Colors.white,
),
),
Container(
height: 3,
width: 200,
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.centerLeft,
end: Alignment.centerRight,
colors: [Colors.yellow, Colors.orangeAccent]
),
),

),
SizedBox(
height: 10,
),
GestureDetector(
onTap: (){
customLauncher("tel: 01742972311");
},
child: Container(
height: 30,
width: 200,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
gradient: LinearGradient(
begin: Alignment.centerLeft,
end: Alignment.centerRight,
colors: [Colors.tealAccent, Colors.greenAccent]
),
),
child: Row(
children: [
SizedBox(width: 5,),
Icon(Icons.phone),
SizedBox(width: 10,),
Text("01742972311"),
],
),
),
),
SizedBox(
height: 10,
),
GestureDetector(
onTap: (){
customLauncher("mailto: mehedihasan.ae@gmail.com");
},
child: Container(
height: 30,
width: 200,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
gradient: LinearGradient(
begin: Alignment.centerLeft,
end: Alignment.centerRight,
colors: [Colors.tealAccent, Colors.greenAccent]
),
),
child: Row(
children: [
SizedBox(width: 5,),
Icon(Icons.mail),
SizedBox(width: 10,),
Text("mehedihasan.ae@gmail.com",
style: TextStyle(
fontSize: 12,
),
),
],
),
),
),
SizedBox(
height: 10,
),
Container(
height: 30,
width: 200,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
gradient: LinearGradient(
begin: Alignment.centerLeft,
end: Alignment.centerRight,
colors: [Colors.tealAccent, Colors.greenAccent]
),
),
child: Row(
children: [
SizedBox(width: 5,),
Text("Blood Group:"),
SizedBox(width: 10,),
Text("B (+ve)"),
],
),

),
SizedBox(
height: 15),
Row(
children: [
SizedBox(width:12),
GestureDetector(
onTap: (){
customLauncher("https://excelitai.com/");
},
child: Container(
child:Icon(CupertinoIcons.globe,
size: 20,
color: Colors.black,
),
),
),

SizedBox(width:45),
Text("Powered by: ",
style: TextStyle(
fontSize: 12,
),
),
Text("Excel",
style: TextStyle(
color: Colors.orangeAccent,
fontSize: 12,
fontWeight: FontWeight.bold
),
),
Padding(padding: EdgeInsets.only(left: 3)),
Text("IT",
style: TextStyle(
fontSize: 12,
fontWeight: FontWeight.bold,
color: Colors.cyan,
),
),
Padding(padding: EdgeInsets.only(left: 3)),
Text("AI",
style: TextStyle(
fontSize: 12,
fontWeight: FontWeight.bold,
color: Colors.orangeAccent,
),
),
SizedBox(width: 4),
CircleAvatar(
backgroundImage: AssetImage("images/Asset 1.png",),
radius: 10,
),
],
)
]
),
),
height: 320,
width: 250,
),

],
),
)
],
),
);
}
}

You might also like