Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f16b6a9

Browse files
committedNov 10, 2019
Removed unnecessary assets
1 parent 690ce69 commit f16b6a9

35 files changed

+62
-45
lines changed
 

‎assets/avatar.jpg

-243 KB
Loading

‎lib/config/assets.dart

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
class Assets{
2+
static const moon = 'assets/moon.png';
3+
static const avatar = 'assets/avatar.jpg';
4+
static const facebook = 'assets/facebook.png';
5+
static const github = 'assets/github.png';
6+
static const instagram = 'assets/instagram.png';
7+
static const linkedin = 'assets/linkedin.png';
8+
static const medium = 'assets/medium.png';
9+
static const twitter= 'assets/twitter.png';
10+
static const cocoapay = 'assets/works/cocoapay.png';
11+
static const facelyt = 'assets/works/facelyt.png';
12+
static const kharedi_now = 'assets/works/kharedi_now.png';
13+
static const messio = 'assets/works/messio.png';
14+
static const mydealer = 'assets/works/mydealer.png';
15+
static const mynewcar = 'assets/works/mynewcar.png';
16+
static const railenq = 'assets/works/railenq.png';
17+
static const rajasthan_tourism = 'assets/works/rajasthan_tourism.png';
18+
static const savaari_consumer = 'assets/works/savaari_consumer.png';
19+
static const savaari_partner = 'assets/works/savaari_partner.png';
20+
static const trivz = 'assets/works/trivz.png';
21+
static const truelancer ='assets/works/truelancer.png';
22+
static const vdrone = 'assets/works/vdrone.png';
23+
static const wheelie_repairs = 'assets/works/wheelie_repairs.png';
24+
}

‎lib/config/constants.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class Constants{
22
static const BLOG_API = 'https://adityadroid-medium.herokuapp.com/@adityadroid';
3-
static const MEDIUM_IMAGE_CDN = 'https://miro.medium.com/';
3+
static const MEDIUM_IMAGE_CDN = 'https://miro.medium.com/fit/c/700/300/';
44
static const BLOG_URL = 'http://www.medium.com/@adityadroid/';
55
static const PROFILE_MEDIUM = 'http://www.medium.com/@adityadroid';
66
static const PROFILE_LINKEDIN = 'https://www.linkedin.com/in/adityagurjar/';

‎lib/config/themes.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ darkTheme(context) {
2020
}
2121
lightTheme(context) {
2222
return ThemeData(
23-
fontFamily: 'GoogleSansRegular',
23+
fontFamily: 'GoogleSansRegular',
2424
primarySwatch: Colors.blue,
2525
primaryColor: Colors.white,
2626
accentColor: Colors.blue,

‎lib/main.dart

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ void main() => runApp(MyApp());
99
class MyApp extends StatelessWidget {
1010
@override
1111
Widget build(BuildContext context) {
12+
// MaterialApp(
13+
// debugShowCheckedModeBanner: false,
14+
// title: 'Aditya Gurjar',
15+
// theme:ThemeSwitcher.of(context).isDarkModeOn?darkTheme(context):lightTheme(context),
16+
// home: Scaffold(
17+
// body: Container(),
18+
// ),
19+
// );
1220
return ThemeSwitcherWidget(
1321
initialDarkModeOn: false,
1422
child: Adityadroid(),
@@ -26,7 +34,6 @@ class Adityadroid extends StatelessWidget {
2634
return MaterialApp(
2735
debugShowCheckedModeBanner: false,
2836
title: 'Aditya Gurjar',
29-
//theme: lightTheme(context),
3037
theme:ThemeSwitcher.of(context).isDarkModeOn?darkTheme(context):lightTheme(context),
3138
home: HomePage(),
3239
);

‎lib/pages/home_page.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import 'package:adityagurjar/config/assets.dart';
12
import 'package:adityagurjar/tabs/about_tab.dart';
23
import 'package:adityagurjar/tabs/blog_tab.dart';
34
import 'package:adityagurjar/tabs/projects_tab.dart';
@@ -26,7 +27,7 @@ class _HomePageState extends State<HomePage> {
2627
appBar: AppBar(
2728
actions: <Widget>[
2829
IconButton(
29-
icon: ThemeSwitcher.of(context).isDarkModeOn?Icon(Icons.wb_sunny):Image.asset('assets/moon.png',height: 20,width: 20,),
30+
icon: ThemeSwitcher.of(context).isDarkModeOn?Icon(Icons.wb_sunny):Image.asset(Assets.moon,height: 20,width: 20,),
3031
onPressed: ()=> ThemeSwitcher.of(context).switchDarkMode(),
3132
)
3233
],

‎lib/tabs/about_tab.dart

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import 'package:adityagurjar/config/assets.dart';
12
import 'package:adityagurjar/config/constants.dart';
23
import 'package:flutter/material.dart';
34
import 'dart:html' as html;
@@ -42,21 +43,21 @@ class AboutTab extends StatelessWidget {
4243
icon: SizedBox(
4344
width: 20,
4445
height: 20,
45-
child: Image.asset('assets/github.png')),
46+
child: Image.asset(Assets.github)),
4647
label: Text('Github'),
4748
onPressed:()=> html.window.open(Constants.PROFILE_GITHUB,'adityadroid' ),
4849
),FlatButton.icon(
4950
icon: SizedBox(
5051
width: 20,
5152
height: 20,
52-
child: Image.asset('assets/twitter.png')),
53+
child: Image.asset(Assets.twitter)),
5354
label: Text('Twitter'),
5455
onPressed:()=> html.window.open(Constants.PROFILE_TWITTER,'adityadroid' ),
5556
),FlatButton.icon(
5657
icon: SizedBox(
5758
width: 20,
5859
height: 20,
59-
child: Image.asset('assets/medium.png')),
60+
child: Image.asset(Assets.medium)),
6061
label: Text('Medium'),
6162
onPressed:()=> html.window.open(Constants.PROFILE_MEDIUM,'adityadroid' ),
6263
)
@@ -70,21 +71,21 @@ class AboutTab extends StatelessWidget {
7071
icon: SizedBox(
7172
width: 20,
7273
height: 20,
73-
child: Image.asset('assets/instagram.png')),
74+
child: Image.asset(Assets.instagram)),
7475
label: Text('Instagram'),
7576
onPressed:()=> html.window.open(Constants.PROFILE_INSTAGRAM,'adityadroid' ),
7677
),FlatButton.icon(
7778
icon: SizedBox(
7879
width: 20,
7980
height: 20,
80-
child: Image.asset('assets/facebook.png')),
81+
child: Image.asset(Assets.facebook)),
8182
label: Text('Facebook'),
8283
onPressed:()=> html.window.open(Constants.PROFILE_FACEBOOK,'adityadroid' ),
8384
),FlatButton.icon(
8485
icon: SizedBox(
8586
width: 20,
8687
height: 20,
87-
child: Image.asset('assets/linkedin.png')),
88+
child: Image.asset(Assets.linkedin)),
8889
label: Text('Linkedin'),
8990
onPressed:()=> html.window.open(Constants.PROFILE_LINKEDIN,'adityadroid' ),
9091
)

‎lib/tabs/blog_tab.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ class _BlogTabState extends State<BlogTab> {
7070
}
7171

7272
Widget blogList() {
73+
74+
7375
return SingleChildScrollView(
7476
child: Padding(
7577
padding: const EdgeInsets.only(bottom: 16.0),
@@ -79,6 +81,7 @@ class _BlogTabState extends State<BlogTab> {
7981
ListView.builder(
8082
itemCount: _blogs.length,
8183
shrinkWrap: true,
84+
physics: NeverScrollableScrollPhysics(),
8285
itemBuilder: (context, index) =>
8386
BlogWidget(_blogs[index], index, _blogs.length)),
8487
RaisedButton(

‎lib/tabs/projects_tab.dart

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import 'package:adityagurjar/config/assets.dart';
12
import 'package:adityagurjar/models/project_model.dart';
23
import 'package:adityagurjar/widgets/project_widget.dart';
34
import 'package:adityagurjar/widgets/responsive_widget.dart';
@@ -7,86 +8,86 @@ class ProjectsTab extends StatelessWidget {
78
final List<Project> projects = [
89
Project(
910
name: 'Truelancer',
10-
image: 'assets/works/truelancer.png',
11+
image: Assets.truelancer,
1112
description:
1213
'Truelancer Mobile App is a Freelancing Platform. You can Search Jobs & Hire Freelancers for work.',
1314
link:
1415
'https://play.google.com/store/apps/details?id=com.truelancer.app'),
1516
Project(
1617
name: 'Messio',
17-
image: 'assets/works/messio.png',
18+
image: Assets.messio,
1819
description:
1920
'An Open-Source Messaging App built using Flutter and Firebase. Part of the series \'60 Days of Flutter',
2021
link: 'https://github.com/adityadroid/messio'),
2122
Project(
2223
name: 'Savaari',
23-
image: 'assets/works/savaari_consumer.png',
24+
image: Assets.savaari_consumer,
2425
description:
2526
'Savaari is the leading player in Outstation Cabs, Hourly Rental Cabs, Airport Pickups and Airport Drop Taxis. ',
2627
link: 'https://play.google.com/store/apps/details?id=com.savaari.app'),
2728
Project(
2829
name: 'Savaari Partner',
29-
image: 'assets/works/savaari_partner.png',
30+
image: Assets.savaari_partner,
3031
description:
3132
'This App allows cab drivers to conveniently share billing and other trip details scheduled to them.',
3233
link:
3334
'https://play.google.com/store/apps/details?id=com.savaari.driver.app'),
3435
Project(
3536
name: 'Mynewcar',
36-
image: 'assets/works/mynewcar.png',
37+
image: Assets.mynewcar,
3738
description:
3839
'Through this App, along with doorstep delivery of a new car, one can also select the accessories to buy.',
3940
link: 'https://play.google.com/store/apps/details?id=com.mynewcar.app'),
4041
Project(
4142
name: 'Trivz',
42-
image: 'assets/works/trivz.png',
43+
image: Assets.trivz,
4344
description:
4445
'With the Trivz app, car owners can give test drives to car buyers.',
4546
link:
4647
'https://play.google.com/store/apps/details?id=in.mynewcar.testdrives'),
4748
Project(
4849
name: 'Mydealer',
49-
image: 'assets/works/mydealer.png',
50+
image: Assets.mydealer,
5051
description:
5152
'Mydealer App helps a car dealership to manage sales process and improve the productivity`.',
5253
link: 'https://play.google.com/store/apps/details?id=in.mnc.mydealer'),
5354
Project(
5455
name: 'FaceLyt',
55-
image: 'assets/works/facelyt.png',
56+
image: Assets.facelyt,
5657
description:
5758
'FaceLyt is an alternative and free client to manage your Facebook account.',
5859
link:
5960
'https://apkpure.com/facelyt-for-facebook-lite/com.adityaadi1467.facelytx'),
6061
Project(
6162
name: 'Cocoapay',
62-
image: 'assets/works/cocoapay.png',
63+
image: Assets.cocoapay,
6364
description:
6465
'Cocoapay helps merchants start accepting payments through POS devices and bill through the app.',
6566
link: 'http://www.cocoapay.com/'),
6667
Project(
6768
name: 'VDrone',
68-
image: 'assets/works/vdrone.png',
69+
image: Assets.vdrone,
6970
description: 'A New company which does everything you dont want',
7071
link: 'http://www.vdrone.xyz/'),
7172
Project(
7273
name: 'Wheelie Repairs',
73-
image: 'assets/works/wheelie_repairs.png',
74+
image: Assets.wheelie_repairs,
7475
description:
7576
'Wheelie Repairs providers door to door garage services & breakdown assistance for vehicles.',
7677
link:
7778
'https://play.google.com/store/apps/details?id=com.wheelierepairs'),
7879
Project(
7980
name: 'Kharedi Now',
80-
image: 'assets/works/kharedi_now.png',
81+
image: Assets.kharedi_now,
8182
description: 'A Grocery app for the city of Latur.'),
8283
Project(
8384
name: 'Rajasthan Tourism',
84-
image: 'assets/works/rajasthan_tourism.png',
85+
image: Assets.rajasthan_tourism,
8586
description:
8687
'A app built using Cordova which had info about Rajasthan and its tourism destinations'),
8788
Project(
8889
name: 'Railenq',
89-
image: 'assets/works/railenq.png',
90+
image: Assets.railenq,
9091
description:
9192
'RailENQ is an app for trains and Railway Enquiries.'),
9293
];

‎lib/widgets/blog_widget.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ class BlogWidget extends StatelessWidget {
1010

1111
@override
1212
Widget build(BuildContext context) {
13-
double topBottomPadding =
14-
(index == 0 || index == length - 1) ? 16.0 : 8.0;
13+
double topBottomPadding = (index == 0 || index == length - 1) ? 16.0 : 8.0;
1514
return InkWell(
1615
onTap: ()=>html.window.open(Constants.BLOG_URL+blog.uniqueSlug, 'adityadroid'),
1716
child: Card(

‎web/assets/FontManifest.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

‎web/assets/GoogleSansRegular.ttf

-117 KB
Binary file not shown.

‎web/assets/avatar.jpg

-344 KB
Binary file not shown.

‎web/assets/facebook.png

-6.2 KB
Binary file not shown.

‎web/assets/github.png

-16.8 KB
Binary file not shown.

‎web/assets/instagram.png

-30.1 KB
Binary file not shown.

‎web/assets/linkedin.png

-7.23 KB
Binary file not shown.

‎web/assets/medium.png

-34.2 KB
Binary file not shown.

‎web/assets/moon.png

-8.92 KB
Binary file not shown.

‎web/assets/twitter.png

-13.3 KB
Binary file not shown.

‎web/assets/works/cocoapay.png

-16.4 KB
Binary file not shown.

‎web/assets/works/facelyt.png

-8.25 KB
Binary file not shown.

‎web/assets/works/kharedi_now.png

-39 KB
Binary file not shown.

‎web/assets/works/messio.png

-47.7 KB
Binary file not shown.

‎web/assets/works/mydealer.png

-9.17 KB
Binary file not shown.

‎web/assets/works/mynewcar.png

-25.5 KB
Binary file not shown.

‎web/assets/works/railenq.png

-44 KB
Binary file not shown.
-13.5 KB
Binary file not shown.

‎web/assets/works/savaari_consumer.png

-23.1 KB
Binary file not shown.

‎web/assets/works/savaari_partner.png

-10.2 KB
Binary file not shown.

‎web/assets/works/stattion.png

-9.63 KB
Binary file not shown.

‎web/assets/works/trivz.png

-11.5 KB
Binary file not shown.

‎web/assets/works/truelancer.png

-56.2 KB
Binary file not shown.

‎web/assets/works/vdrone.png

-1.29 KB
Binary file not shown.

‎web/assets/works/wheelie_repairs.png

-6.43 KB
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.