@@ -10,121 +10,117 @@ class AboutPageView extends GetView<AboutPageController> {
1010 const AboutPageView ({Key ? key}) : super (key: key);
1111
1212 @override
13- Widget build (BuildContext context) {
14- return Scaffold (
15- appBar: AppBar (
16- title: const Text (
17- 'Team Members' ,
18- style: TextStyle (
19- fontWeight: FontWeight .bold,
13+ Widget build (BuildContext context) => Scaffold (
14+ appBar: AppBar (
15+ title: const Text (
16+ 'Team Members' ,
17+ style: TextStyle (
18+ fontWeight: FontWeight .bold,
19+ ),
20+ ),
21+ centerTitle: true ,
22+ leading: IconButton (
23+ icon: const Icon (Icons .arrow_back),
24+ onPressed: () {
25+ Navigator .of (context).pop ();
26+ },
2027 ),
2128 ),
22- centerTitle: true ,
23- leading: IconButton (
24- icon: const Icon (Icons .arrow_back),
25- onPressed: () {
26- Navigator .of (context).pop ();
27- },
28- ),
29- ),
30- body: Center (
31- child: Container (
32- constraints: const BoxConstraints (maxWidth: 600 ),
33- child: ListView (
34- padding: const EdgeInsets .all (16.0 ),
35- children: [
36- buildPersonCard (
37- name: 'Alok Kumar' ,
38- imageAsset: 'assets/images/alok.jpg' ,
39- instagramLink: 'https://iinstagram.com/4_alokk' ,
40- githubLink: 'https://github.com/4-alok' ,
41- linkedinLink: 'https://www.linkedin.com/in/4-alok/' ,
42- contactText: 'Mobile-7250723796' ,
43- ),
44- const SizedBox (height: 16.0 ),
45- buildPersonCard (
46- name: 'Nitin Kumar' ,
47- imageAsset: 'assets/images/nitin.jpg' ,
48- instagramLink:
49- 'https://instagram.com/nitinkumargd?igshid=ZDdkNTZiNTM' ,
50- githubLink: 'https://github.com/Nitin-45' ,
51- linkedinLink:
52- 'https://www.linkedin.com/in/nitin-kumar-4a07681b8/' ,
53- contactText: 'Mobile-9523578653' ,
54- ),
55- const SizedBox (height: 16.0 ),
56- buildPersonCard (
57- name: 'Sneha Agarwal' ,
58- imageAsset: 'assets/images/sneha.jpg' ,
59- instagramLink: '' ,
60- githubLink: 'https://github.com/Sneha280564' ,
61- linkedinLink: 'https://www.linkedin.com/in/sneha-agarwal-sa19' ,
62- contactText: '' ,
63- ),
64- ],
29+ body: Center (
30+ child: Container (
31+ constraints: const BoxConstraints (maxWidth: 600 ),
32+ child: ListView (
33+ padding: const EdgeInsets .all (16.0 ),
34+ children: [
35+ buildPersonCard (
36+ name: 'Alok Kumar' ,
37+ imageNetwork: 'https://i.imgur.com/2lnDRzns.jpg' ,
38+ instagramLink: 'https://instagram.com/4_alokk' ,
39+ githubLink: 'https://github.com/4-alok' ,
40+ linkedinLink: 'https://www.linkedin.com/in/4-alok/' ,
41+ contactText: 'Mobile-7250723796' ,
42+ ),
43+ const SizedBox (height: 16.0 ),
44+ buildPersonCard (
45+ name: 'Nitin Kumar' ,
46+ imageNetwork: 'https://i.imgur.com/cEFRGYqs.jpg' ,
47+ instagramLink:
48+ 'https://instagram.com/nitinkumargd?igshid=ZDdkNTZiNTM' ,
49+ githubLink: 'https://github.com/Nitin-45' ,
50+ linkedinLink:
51+ 'https://www.linkedin.com/in/nitin-kumar-4a07681b8/' ,
52+ contactText: 'Mobile-9523578653' ,
53+ ),
54+ const SizedBox (height: 16.0 ),
55+ buildPersonCard (
56+ name: 'Sneha Agarwal' ,
57+ imageNetwork: 'https://i.imgur.com/UPXcdqps.jpg' ,
58+ instagramLink: '' ,
59+ githubLink: 'https://github.com/Sneha280564' ,
60+ linkedinLink:
61+ 'https://www.linkedin.com/in/sneha-agarwal-sa19' ,
62+ contactText: '' ,
63+ ),
64+ ],
65+ ),
6566 ),
6667 ),
67- ),
68- );
69- }
68+ );
7069
7170 Widget buildPersonCard ({
7271 required String name,
73- required String imageAsset ,
72+ required String imageNetwork ,
7473 required String instagramLink,
7574 required String githubLink,
7675 required String linkedinLink,
7776 required String contactText,
78- }) {
79- return Card (
80- elevation: 2.0 ,
81- child: Padding (
82- padding: const EdgeInsets .all (16.0 ),
83- child: Column (
84- children: [
85- CircleAvatar (
86- radius: 40 ,
87- backgroundImage: AssetImage (imageAsset),
88- ),
89- const SizedBox (height: 16.0 ),
90- Text (
91- name,
92- style: const TextStyle (
93- fontSize: 20 ,
94- fontWeight: FontWeight .bold,
77+ }) =>
78+ Card (
79+ elevation: 2.0 ,
80+ child: Padding (
81+ padding: const EdgeInsets .all (16.0 ),
82+ child: Column (
83+ children: [
84+ CircleAvatar (
85+ radius: 40 ,
86+ backgroundImage: NetworkImage (imageNetwork),
9587 ),
96- ),
97- const SizedBox (height: 8.0 ),
98- Row (
99- mainAxisAlignment: MainAxisAlignment .center,
100- children: [
101- buildLinkButton ('Instagram' , instagramLink),
102- const SizedBox (width: 8.0 ),
103- buildLinkButton ('GitHub' , githubLink),
104- const SizedBox (width: 8.0 ),
105- buildLinkButton ('LinkedIn' , linkedinLink),
106- ],
107- ),
108- const SizedBox (height: 16.0 ),
109- Text (contactText),
110- ],
88+ const SizedBox (height: 16.0 ),
89+ Text (
90+ name,
91+ style: const TextStyle (
92+ fontSize: 20 ,
93+ fontWeight: FontWeight .bold,
94+ ),
95+ ),
96+ const SizedBox (height: 8.0 ),
97+ Row (
98+ mainAxisAlignment: MainAxisAlignment .center,
99+ children: [
100+ buildLinkButton ('Instagram' , instagramLink),
101+ const SizedBox (width: 8.0 ),
102+ buildLinkButton ('GitHub' , githubLink),
103+ const SizedBox (width: 8.0 ),
104+ buildLinkButton ('LinkedIn' , linkedinLink),
105+ ],
106+ ),
107+ const SizedBox (height: 16.0 ),
108+ Text (contactText),
109+ ],
110+ ),
111111 ),
112- ),
113- );
114- }
112+ );
115113
116- Widget buildLinkButton (String text, String link) {
117- return ElevatedButton (
118- onPressed: () {
119- _launchURL (link);
120- },
121- style: ElevatedButton .styleFrom (
122- primary: Colors .blue,
123- textStyle: const TextStyle (color: Colors .white),
124- ),
125- child: Text (text),
126- );
127- }
114+ Widget buildLinkButton (String text, String link) => ElevatedButton (
115+ onPressed: () {
116+ _launchURL (link);
117+ },
118+ style: ElevatedButton .styleFrom (
119+ primary: Colors .blue,
120+ textStyle: const TextStyle (color: Colors .white),
121+ ),
122+ child: Text (text),
123+ );
128124
129125 void _launchURL (String link) async {
130126 if (await canLaunch (link)) {
0 commit comments