@@ -2,10 +2,13 @@ import 'package:adityagurjar/config/assets.dart';
22import 'package:adityagurjar/config/constants.dart' ;
33import 'package:flutter/material.dart' ;
44import 'dart:html' as html;
5+
6+ import '../widgets/theme_inherited_widget.dart' ;
7+
58class 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.\n Likes Traveling.' ,
31- style: Theme .of (context).textTheme.caption,
32- textScaleFactor: 2 ,
33- textAlign: TextAlign .center,
34- ),
33+ 'Android. Flutter. Cricket. Music.\n Likes 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 )
0 commit comments