Skip to content

Commit 5b98663

Browse files
committed
Updated medium icon
1 parent 4caa2a6 commit 5b98663

File tree

4 files changed

+35
-18
lines changed

4 files changed

+35
-18
lines changed

assets/medium_light.png

12.2 KB
Loading

lib/config/assets.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class Assets{
66
static const instagram = 'assets/instagram.png';
77
static const linkedin = 'assets/linkedin.png';
88
static const medium = 'assets/medium.png';
9+
static const medium_light = 'assets/medium_light.png';
910
static const twitter= 'assets/twitter.png';
1011
static const cocoapay = 'assets/works/cocoapay.png';
1112
static const facelyt = 'assets/works/facelyt.png';

lib/tabs/about_tab.dart

Lines changed: 33 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ import 'package:adityagurjar/config/assets.dart';
22
import 'package:adityagurjar/config/constants.dart';
33
import 'package:flutter/material.dart';
44
import 'dart:html' as html;
5+
6+
import '../widgets/theme_inherited_widget.dart';
7+
58
class AboutTab extends StatelessWidget {
69
@override
710
Widget build(BuildContext context) {
8-
return SingleChildScrollView(
11+
return SingleChildScrollView(
912
child: Center(
1013
child: Padding(
1114
padding: const EdgeInsets.only(bottom: 16.0),
@@ -27,11 +30,11 @@ class AboutTab extends StatelessWidget {
2730
height: 20,
2831
),
2932
Text(
30-
'Android. Flutter. Cricket. Music.\nLikes Traveling.',
31-
style: Theme.of(context).textTheme.caption,
32-
textScaleFactor: 2,
33-
textAlign: TextAlign.center,
34-
),
33+
'Android. Flutter. Cricket. Music.\nLikes Traveling.',
34+
style: Theme.of(context).textTheme.caption,
35+
textScaleFactor: 2,
36+
textAlign: TextAlign.center,
37+
),
3538
SizedBox(
3639
height: 40,
3740
),
@@ -45,21 +48,29 @@ class AboutTab extends StatelessWidget {
4548
height: 20,
4649
child: Image.asset(Assets.github)),
4750
label: Text('Github'),
48-
onPressed:()=> html.window.open(Constants.PROFILE_GITHUB,'adityadroid' ),
49-
),FlatButton.icon(
51+
onPressed: () => html.window
52+
.open(Constants.PROFILE_GITHUB, 'adityadroid'),
53+
),
54+
FlatButton.icon(
5055
icon: SizedBox(
5156
width: 20,
5257
height: 20,
5358
child: Image.asset(Assets.twitter)),
5459
label: Text('Twitter'),
55-
onPressed:()=> html.window.open(Constants.PROFILE_TWITTER,'adityadroid' ),
56-
),FlatButton.icon(
60+
onPressed: () => html.window
61+
.open(Constants.PROFILE_TWITTER, 'adityadroid'),
62+
),
63+
FlatButton.icon(
5764
icon: SizedBox(
5865
width: 20,
5966
height: 20,
60-
child: Image.asset(Assets.medium)),
67+
child: Image.asset(
68+
ThemeSwitcher.of(context).isDarkModeOn
69+
? Assets.medium
70+
: Assets.medium_light)),
6171
label: Text('Medium'),
62-
onPressed:()=> html.window.open(Constants.PROFILE_MEDIUM,'adityadroid' ),
72+
onPressed: () => html.window
73+
.open(Constants.PROFILE_MEDIUM, 'adityadroid'),
6374
)
6475
],
6576
),
@@ -73,21 +84,26 @@ class AboutTab extends StatelessWidget {
7384
height: 20,
7485
child: Image.asset(Assets.instagram)),
7586
label: Text('Instagram'),
76-
onPressed:()=> html.window.open(Constants.PROFILE_INSTAGRAM,'adityadroid' ),
77-
),FlatButton.icon(
87+
onPressed: () => html.window
88+
.open(Constants.PROFILE_INSTAGRAM, 'adityadroid'),
89+
),
90+
FlatButton.icon(
7891
icon: SizedBox(
7992
width: 20,
8093
height: 20,
8194
child: Image.asset(Assets.facebook)),
8295
label: Text('Facebook'),
83-
onPressed:()=> html.window.open(Constants.PROFILE_FACEBOOK,'adityadroid' ),
84-
),FlatButton.icon(
96+
onPressed: () => html.window
97+
.open(Constants.PROFILE_FACEBOOK, 'adityadroid'),
98+
),
99+
FlatButton.icon(
85100
icon: SizedBox(
86101
width: 20,
87102
height: 20,
88103
child: Image.asset(Assets.linkedin)),
89104
label: Text('Linkedin'),
90-
onPressed:()=> html.window.open(Constants.PROFILE_LINKEDIN,'adityadroid' ),
105+
onPressed: () => html.window
106+
.open(Constants.PROFILE_LINKEDIN, 'adityadroid'),
91107
)
92108
],
93109
)

pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ packages:
4747
name: meta
4848
url: "https://pub.dartlang.org"
4949
source: hosted
50-
version: "1.1.7"
50+
version: "1.1.8"
5151
path:
5252
dependency: transitive
5353
description:

0 commit comments

Comments
 (0)