This repository has been archived by the owner on Apr 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
BuddhaNag12
committed
Nov 8, 2020
1 parent
cbea7f1
commit 4a059d1
Showing
8 changed files
with
342 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,239 @@ | ||
import 'package:flutter/cupertino.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:movies_intent/constants/movie_const.dart'; | ||
import 'package:url_launcher/url_launcher.dart'; | ||
|
||
class AboutScreen extends StatelessWidget { | ||
_launchURL() async { | ||
const url = 'https://github.com/BuddhaNag12/Movies-intent-app-flutter'; | ||
if (await canLaunch(url)) { | ||
await launch(url); | ||
} else { | ||
throw 'Could not launch $url'; | ||
} | ||
} | ||
|
||
_launchURLSecond() async { | ||
const url = 'mailto:rahulnag514@gmail.com'; | ||
if (await canLaunch(url)) { | ||
await launch(url); | ||
} else { | ||
throw 'Could not launch $url'; | ||
} | ||
} | ||
|
||
_launchURLProfile() async { | ||
const url = 'https://www.facebook.com/ItSBuddhaHERE/'; | ||
if (await canLaunch(url)) { | ||
await launch(url); | ||
} else { | ||
throw 'Could not launch $url'; | ||
} | ||
} | ||
|
||
|
||
class AboutScreen extends StatelessWidget { | ||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: AppBar(title: Text('About')), | ||
body: Container(child: Text('About page')), | ||
appBar: AppBar( | ||
title: Text('About'), | ||
backgroundColor: Colors.transparent, | ||
elevation: 0.0, | ||
), | ||
body: SingleChildScrollView( | ||
child: Column( | ||
// mainAxisAlignment: MainAxisAlignment.start, | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: [ | ||
Container( | ||
child: Image.asset( | ||
'assets/about.png', | ||
fit: BoxFit.cover, | ||
width: MediaQuery.of(context).size.width, | ||
)), | ||
Row( | ||
mainAxisAlignment: MainAxisAlignment.spaceBetween, | ||
children: [ | ||
Container( | ||
alignment: Alignment.centerLeft, | ||
margin: EdgeInsets.all(3), | ||
width: MediaQuery.of(context).size.width / 2, | ||
decoration: BoxDecoration( | ||
gradient: LinearGradient( | ||
colors: [Colors.blueGrey[200], Colors.amberAccent[200]], | ||
begin: Alignment.topLeft, | ||
end: Alignment.bottomRight), | ||
borderRadius: BorderRadius.only( | ||
topRight: Radius.circular(8), | ||
bottomLeft: Radius.circular(8)), | ||
boxShadow: [ | ||
BoxShadow( | ||
color: Colors.black45.withOpacity(0.2), | ||
blurRadius: 2, | ||
spreadRadius: 0, | ||
offset: Offset(0, 2)), | ||
]), | ||
child: Padding( | ||
padding: EdgeInsets.all(5), | ||
child: Text( | ||
'About The developer', | ||
style: | ||
TextStyle(fontSize: 24.0, fontFamily: 'HindVadodara'), | ||
)), | ||
), | ||
GestureDetector( | ||
onTap:_launchURLProfile , | ||
child: Container( | ||
margin: EdgeInsets.symmetric(horizontal: 5, vertical: 5), | ||
padding: EdgeInsets.all(5), | ||
decoration: BoxDecoration( | ||
gradient: LinearGradient( | ||
colors: [Colors.blueGrey[200], Colors.amberAccent[200]], | ||
begin: Alignment.topLeft, | ||
end: Alignment.bottomRight), | ||
borderRadius: BorderRadius.circular(8), | ||
boxShadow: [ | ||
BoxShadow( | ||
color: Colors.black45.withOpacity(0.2), | ||
blurRadius: 2, | ||
spreadRadius: 0, | ||
offset: Offset(0, 2) | ||
) | ||
]), | ||
child: Row( | ||
mainAxisAlignment: MainAxisAlignment.spaceBetween, | ||
children: [ | ||
ClipRRect( | ||
borderRadius: BorderRadius.circular(20), | ||
child: Image.network( | ||
MovieConstants().developerImage, | ||
width: 35, | ||
height: 35, | ||
fit: BoxFit.cover, | ||
), | ||
), | ||
Text('Buddha Nag'), | ||
], | ||
), | ||
), | ||
), | ||
], | ||
), | ||
buildTextWidget(), | ||
buildProjectWidget(_launchURL), | ||
buildContactWidget(_launchURLSecond) | ||
], | ||
)), | ||
); | ||
} | ||
} | ||
|
||
Widget buildContactWidget(_launchURLSecond) { | ||
return Container( | ||
margin: EdgeInsets.symmetric(horizontal: 10), | ||
child: Column( | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: [ | ||
Align( | ||
alignment: Alignment.centerLeft, | ||
child: Text( | ||
'Contact Details :', | ||
style: TextStyle(fontSize: 20.0, fontFamily: 'HindVadodara'), | ||
)), | ||
Row( | ||
children: [ | ||
Text( | ||
"Email me at", | ||
style: TextStyle( | ||
fontSize: 15, | ||
letterSpacing: 0.5, | ||
fontFamily: 'Nunito-Light', | ||
fontWeight: FontWeight.w600), | ||
), | ||
FlatButton.icon( | ||
|
||
onPressed: _launchURLSecond, | ||
icon: Icon(Icons.email), | ||
label: Text('Gmail')) | ||
], | ||
) | ||
], | ||
)); | ||
} | ||
|
||
Widget buildProjectWidget(_launchURL) { | ||
return Container( | ||
margin: EdgeInsets.symmetric(horizontal: 10), | ||
child: Column( | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: [ | ||
Align( | ||
alignment: Alignment.centerLeft, | ||
child: Text( | ||
'Project Details:', | ||
style: TextStyle(fontSize: 20.0, fontFamily: 'HindVadodara'), | ||
)), | ||
Text( | ||
"You can find my project licence and project source code in github below", | ||
style: TextStyle( | ||
fontSize: 15, | ||
letterSpacing: 0.5, | ||
fontFamily: 'Nunito-Light', | ||
fontWeight: FontWeight.w600), | ||
), | ||
FlatButton.icon( | ||
color: Colors.white30, | ||
onPressed: _launchURL, | ||
icon: Icon(Icons.account_tree_outlined), | ||
label: Text('Github')) | ||
], | ||
)); | ||
} | ||
|
||
Widget buildTextWidget() { | ||
return Container( | ||
margin: EdgeInsets.symmetric(horizontal: 10), | ||
child: Column( | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: [ | ||
Align( | ||
alignment: Alignment.centerLeft, | ||
child: Text( | ||
'Quick Summary :', | ||
style: TextStyle(fontSize: 20.0, fontFamily: 'HindVadodara'), | ||
)), | ||
Text( | ||
"Hi...! I'm a full stack web developer and software developer", | ||
style: TextStyle( | ||
fontSize: 15, | ||
letterSpacing: 0.5, | ||
fontFamily: 'Nunito-Light', | ||
fontWeight: FontWeight.w600), | ||
), | ||
SizedBox(height: 5), | ||
Text( | ||
"working on simultaneous projects on react native , flutter and vuejs", | ||
style: TextStyle( | ||
fontSize: 15, | ||
letterSpacing: 0.5, | ||
fontFamily: 'Nunito-Light', | ||
fontWeight: FontWeight.w600)), | ||
SizedBox(height: 5), | ||
Text( | ||
"I'm very passionate and hard working guy love programing and coding all", | ||
style: TextStyle( | ||
fontSize: 15, | ||
letterSpacing: 0.5, | ||
fontFamily: 'Nunito-Light', | ||
fontWeight: FontWeight.w600)), | ||
SizedBox(height: 5), | ||
Text( | ||
"I'm currently working and contributing to a private company i.e Working under Krypto developers pvt ltd.", | ||
style: TextStyle( | ||
fontSize: 15, | ||
letterSpacing: 0.5, | ||
fontFamily: 'Nunito-Light', | ||
fontWeight: FontWeight.w600)) | ||
], | ||
)); | ||
} |
Oops, something went wrong.