Skip to content

Commit 4ea23d7

Browse files
updated about page
1 parent d51ca68 commit 4ea23d7

File tree

1 file changed

+152
-15
lines changed

1 file changed

+152
-15
lines changed

lib/Pages/about_page.dart

Lines changed: 152 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import 'package:flutter/material.dart';
2+
import 'package:url_launcher/url_launcher.dart';
23

34
class AboutPage extends StatefulWidget {
45
const AboutPage({Key? key}) : super(key: key);
@@ -12,29 +13,30 @@ class _AboutPageState extends State<AboutPage> {
1213
Widget build(BuildContext context) {
1314
return Scaffold(
1415
appBar: AppBar(
15-
iconTheme: IconThemeData(color: Theme.of(context).colorScheme.secondary,),
16+
iconTheme: IconThemeData(
17+
color: Theme.of(context).colorScheme.secondary,
18+
),
1619
backgroundColor: Colors.transparent,
1720
title: RichText(
1821
text: TextSpan(
1922
text: 'About ',
2023
style: TextStyle(
21-
color: Colors.amber.shade900,
22-
fontWeight: FontWeight.bold,
23-
fontSize: 18,
24+
color: Colors.amber.shade900,
25+
fontWeight: FontWeight.bold,
26+
fontSize: 18,
2427
fontFamily: 'Aesthetic',
2528
),
2629
children: [
2730
TextSpan(
2831
text: 'TexFusion',
2932
style: TextStyle(
30-
color: Theme.of(context).colorScheme.secondary,
31-
fontWeight: FontWeight.bold,
32-
fontSize: 18,
33+
color: Theme.of(context).colorScheme.secondary,
34+
fontWeight: FontWeight.bold,
35+
fontSize: 18,
3336
fontFamily: 'Aesthetic',
3437
),
3538
),
36-
]
37-
),
39+
]),
3840
),
3941
elevation: 0,
4042
centerTitle: true,
@@ -43,13 +45,148 @@ class _AboutPageState extends State<AboutPage> {
4345
onPressed: () => Navigator.of(context).pop(),
4446
),
4547
),
46-
body: Column(
47-
mainAxisAlignment: MainAxisAlignment.center,
48-
children: const [
49-
Center(
50-
child: Text('Adding Soon..'),
48+
body: SingleChildScrollView(
49+
physics: const BouncingScrollPhysics(),
50+
scrollDirection: Axis.vertical,
51+
child: Column(
52+
crossAxisAlignment: CrossAxisAlignment.center,
53+
children: [
54+
Padding(
55+
padding: const EdgeInsets.all(8.0),
56+
child: Text(
57+
'Description',
58+
style: TextStyle(
59+
fontSize: 18,
60+
fontFamily: 'Nexa',
61+
color: Theme.of(context).colorScheme.secondary),
62+
),
63+
),
64+
Padding(
65+
padding: const EdgeInsets.all(5.0),
66+
child: Text(
67+
'The TexFusion AI app was created by the Flutter framework and is a new AI art generation tool that can create amazing images from just text prompts. TexFusion AI can also make variations of your existing image. It uses the brain_fusion API to get realistically rendered images.',
68+
style: TextStyle(
69+
fontSize: 15,
70+
fontFamily: 'NexaLight',
71+
fontWeight: FontWeight.bold,
72+
color: Theme.of(context).colorScheme.secondary),
73+
textAlign: TextAlign.center,
74+
),
75+
),
76+
const Divider(),
77+
Padding(
78+
padding: const EdgeInsets.all(8.0),
79+
child: Text(
80+
'Features',
81+
style: TextStyle(
82+
fontSize: 18,
83+
fontFamily: 'Nexa',
84+
color: Theme.of(context).colorScheme.secondary),
85+
),
86+
),
87+
Padding(
88+
padding: const EdgeInsets.all(5.0),
89+
child: Text(
90+
'- Generate Images from Text \n - High Quality images. \n - Unlimited Response. \n - Added 12 Styles. \n - Download Image \n - Accent Color Mode. \n - Theme Mode. \n - Lightweight & User Friendly.',
91+
style: TextStyle(
92+
fontSize: 15,
93+
fontFamily: 'NexaLight',
94+
fontWeight: FontWeight.bold,
95+
color: Theme.of(context).colorScheme.secondary),
96+
textAlign: TextAlign.center,
97+
),
98+
),
99+
const Divider(),
100+
Padding(
101+
padding: const EdgeInsets.all(8.0),
102+
child: Text(
103+
'How its work ?',
104+
style: TextStyle(
105+
fontSize: 18,
106+
fontFamily: 'Nexa',
107+
color: Theme.of(context).colorScheme.secondary),
108+
),
109+
),
110+
Padding(
111+
padding: const EdgeInsets.all(5.0),
112+
child: Text(
113+
"1. Make sure you enter a more descriptive prompt. As this is a new API, it is going to take time to produce HD images with a less descriptive prompt. So, make sure you describe the image correctly that you want as output. \n \n 2. Try to select styles while creating your image. Check different styles and see how the output image looks.",
114+
style: TextStyle(
115+
fontSize: 15,
116+
fontFamily: 'NexaLight',
117+
fontWeight: FontWeight.bold,
118+
color: Theme.of(context).colorScheme.secondary),
119+
textAlign: TextAlign.center,
120+
),
121+
),
122+
Padding(
123+
padding: const EdgeInsets.all(5.0),
124+
child: Text(
125+
"Fork the repository, and don't forget to star the repository 🌟",
126+
style: TextStyle(
127+
fontSize: 15,
128+
fontFamily: 'Nexa',
129+
color: Theme.of(context).colorScheme.secondary),
130+
textAlign: TextAlign.center,
131+
),
132+
),
133+
const Divider(),
134+
Padding(
135+
padding: const EdgeInsets.all(8.0),
136+
child: Text(
137+
'Social Links',
138+
style: TextStyle(
139+
fontSize: 18,
140+
fontFamily: 'Nexa',
141+
color: Theme.of(context).colorScheme.secondary),
142+
),
143+
),
144+
Row(
145+
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
146+
crossAxisAlignment: CrossAxisAlignment.center,
147+
children: [
148+
ElevatedButton(
149+
onPressed: () async {
150+
final Uri url = Uri.parse(
151+
'https://github.com/VikramadityaDev/');
152+
if (!await launchUrl(url,
153+
mode: LaunchMode.externalApplication)) {
154+
throw Exception('Could not launch $url');
155+
}
156+
},
157+
child: const Text('Github', style: TextStyle(fontSize: 15, fontFamily: 'Nexa'),),
158+
),
159+
ElevatedButton(
160+
onPressed: () async {
161+
final Uri url = Uri.parse(
162+
'https://telegram.me/Aditya@1190/');
163+
if (!await launchUrl(url,
164+
mode: LaunchMode.externalApplication)) {
165+
throw Exception('Could not launch $url');
166+
}
167+
},
168+
child: const Text('Telegram', style: TextStyle(fontSize: 15, fontFamily: 'Nexa'),),
169+
),
170+
],
171+
),
172+
const SizedBox(
173+
height: 10,
174+
),
175+
],
176+
),
177+
),
178+
bottomNavigationBar: Padding(
179+
padding: const EdgeInsets.only(bottom: 7),
180+
child: Text(
181+
"Made With Love ❤️ VikiMedia",
182+
textAlign: TextAlign.center,
183+
style: TextStyle(
184+
fontSize: 11,
185+
fontWeight: FontWeight.bold,
186+
fontFamily: 'NexaLight',
187+
color: Theme.of(context).colorScheme.secondary,
51188
),
52-
],
189+
),
53190
),
54191
);
55192
}

0 commit comments

Comments
 (0)