Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

Commit

Permalink
πŸŽ‰πŸŽ‰Final Release πŸŽ‰πŸŽ‰
Browse files Browse the repository at this point in the history
  • Loading branch information
BuddhaNag12 committed Nov 8, 2020
1 parent cbea7f1 commit 4a059d1
Show file tree
Hide file tree
Showing 8 changed files with 342 additions and 69 deletions.
2 changes: 2 additions & 0 deletions lib/constants/movie_const.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import 'package:movies_intent/constants/apiKey.dart';

class MovieConstants {
final String developerImage =
'https://scontent.fgau2-1.fna.fbcdn.net/v/t1.0-9/119953291_3356734641070012_2649001979260837698_o.jpg?_nc_cat=103&ccb=2&_nc_sid=09cbfe&_nc_ohc=VAzsAy_PVk4AX_a2QjR&_nc_ht=scontent.fgau2-1.fna&oh=cd70c390d9eb22c13dc10c90264888cf&oe=5FCEE7B4';
final String movieUrl =
'https://api.themoviedb.org/3/discover/movie?api_key=${ApiKey().apiKey}&sort_by=popularity.desc&page=1';

Expand Down
2 changes: 0 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import 'package:flutter/services.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:movies_intent/screens/aboutScreen.dart';
import 'package:movies_intent/screens/detailScreen.dart';
import 'package:movies_intent/screens/helpScreen.dart';
import 'package:movies_intent/screens/homeScreen.dart';
import 'package:movies_intent/screens/imageScreen.dart';
import 'package:movies_intent/screens/searchScreen.dart';
Expand Down Expand Up @@ -45,7 +44,6 @@ class MyApp extends StatelessWidget {
'/Search': (context) => SearchScreen(),
'/Details': (context) => DetailScreen(),
'/About': (context) => AboutScreen(),
'/Help': (context) => HelpScreen(),
'/Image': (context) => ImageScreen(),
},
),
Expand Down
234 changes: 231 additions & 3 deletions lib/screens/aboutScreen.dart
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))
],
));
}
Loading

0 comments on commit 4a059d1

Please sign in to comment.