Saturday, July 13, 2024

My Code

 import 'package:flutter/cupertino.dart';

import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:get/get.dart';
import 'package:url_launcher/url_launcher.dart';

class ProfileScreen extends StatefulWidget {
const ProfileScreen({super.key});

@override
State<ProfileScreen> createState() => _ProfileScreenState();
}

class _ProfileScreenState extends State<ProfileScreen> {
Color myColor = const Color(0xFFE0D4E3);
String myNum = '01870345945';
String myLoc = 'https://www.google.com/maps/search/Mirpur-12/@23.8237056,90.359683,15z/data=!3m1!4b1?entry=ttu';


void makePhoneCall(String phoneNumber) async {
final url = 'tel:$phoneNumber';
// ignore: deprecated_member_use
if (await canLaunch(url)) {
// ignore: deprecated_member_use
await launch(url);
} else {
throw 'Could not launch $url';
}
}



@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: SingleChildScrollView(
child: Column(
children: [
const SizedBox(
height: 10,
),
Stack(
children: [
Container(
height: Get.height * 0.15,
width: double.infinity,
decoration: BoxDecoration(color: myColor),
child: Padding(
padding: const EdgeInsets.all(20),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Text(
"Zahed Al Sabit",
style: TextStyle(
fontSize: 20,
letterSpacing: 3,
fontWeight: FontWeight.bold,
color: Colors.teal.shade800),
),
Text(
"App Developer",
style: TextStyle(
fontSize: 17,
letterSpacing: 2,
fontWeight: FontWeight.bold,
color: Colors.teal.shade800),
),
],
),
),
),
Positioned(
bottom: 1,
right: 0,
child: Container(
height: 120,
width: 120,
decoration: BoxDecoration(
border: Border.all(width: 5, color: Colors.white),
shape: BoxShape.circle,
image: const DecorationImage(
fit: BoxFit.cover,
image: AssetImage("Assets/img.png"))),
),
),
],
),
Padding(
padding: const EdgeInsets.all(15.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const SizedBox(height: 15),
const Divider(),
const SizedBox(height: 15),
const Text(
'Contact:',
style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
),
GestureDetector(
onTap: () {
makePhoneCall(myNum);
},
child: ListTile(
leading: const Icon(Icons.phone),
title: Text(myNum),
),
),
const ListTile(
leading: Icon(Icons.email),
title: Text('nishat@befairgroup.com'),
),
GestureDetector(
onTap: () {
Uri url = Uri.parse(myLoc);
launchUrl(url, mode: LaunchMode.inAppBrowserView);
},
child: const ListTile(
leading: Icon(Icons.location_on),
title: Text('Mirpur 12, Dhaka'),
),
),
GestureDetector(
onTap: () async {
final Uri url = Uri.parse('https://app.ebook.com.bd/');
if (!await launchUrl(url)) {
throw Exception('Could not launch');
}
},
child: const ListTile(
leading: Icon(CupertinoIcons.globe),
title: Text("https://app.ebook.com.bd/"),
),
),
const SizedBox(height: 32),
const Divider(),
const Text(
'Expertise Skills:',
style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
),
const ListTile(
leading: Icon(Icons.check),
title: Text('App Development'),
),
const ListTile(
leading: Icon(Icons.check),
title: Text('Good at dart'),
),
const ListTile(
leading: Icon(Icons.check),
title: Text('Data entry operator'),
),
const SizedBox(height: 32),
const Divider(),
const Text(
'Education:',
style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
),
const ListTile(
leading: Icon(Icons.school),
title: Text('Feni Polytechnic Institute'),
subtitle: Text('Feni, Bangladesh'),
),
const ListTile(
leading: Icon(Icons.school),
title: Text('Shaheen Academy School And College'),
subtitle: Text('Passing year-2019'),
),
const SizedBox(height: 32),
const Divider(),
const Text(
'Experience:',
style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
),
const ListTile(
leading: Icon(Icons.work),
title: Text('Currently working at beFair Group'),
subtitle: Text('Data entry operator \nJunior app developer'),
),

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

No comments:

Post a Comment

SQL Commands

  -- 1. Create table for single words CREATE TABLE single_words (     id INTEGER PRIMARY KEY AUTOINCREMENT,     word TEXT,     bangla TEXT )...