Skip to content

Commit eaad5b4

Browse files
committed
fix the image
1 parent 7c2fb77 commit eaad5b4

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

lib/Pages/home_page.dart

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ class _HomePageState extends State<HomePage> {
3232
AIStyle.noStyle: 'No style',
3333
AIStyle.render3D: '3D render',
3434
AIStyle.anime: 'Anime',
35+
AIStyle.islamic: 'Islamic',
36+
AIStyle.iconography: 'Icon Graphy',
37+
AIStyle.mosaic: 'Mosaic',
3538
AIStyle.moreDetails: 'More Detailed',
3639
AIStyle.cyberPunk: 'CyberPunk',
3740
AIStyle.cartoon: 'Cartoon',
@@ -52,18 +55,14 @@ class _HomePageState extends State<HomePage> {
5255
await appDir.create();
5356
}
5457
final image =
55-
'IMG-${DateTime.now().hour.toString()}-${DateTime.now().minute.toString()}-${DateTime.now().second.toString()}-${DateTime.now().millisecond.toString()}-TexFusion.png';
58+
'''IMG-${DateTime.now().day.toString()}-${DateTime.now().month.toString()}-${DateTime.now().year.toString()}--${DateTime.now().hour.toString()}-${DateTime.now().minute.toString()}-${DateTime.now().millisecond.toString()}-TexFusion.jpeg''';
5659
final filePath = xp.join(appDir.path, image);
5760
final file = File(filePath);
5861
await file.writeAsBytes(canvas).whenComplete(() {
5962
ScaffoldMessenger.of(context).showSnackBar(
6063
SnackBar(
6164
content: Text('Image was Downloaded in $filePath'),
6265
elevation: 10,
63-
/* padding: const EdgeInsets.all(15),
64-
shape: RoundedRectangleBorder(
65-
borderRadius: BorderRadius.circular(15.0),
66-
),*/
6766
),
6867
);
6968
});
@@ -187,9 +186,8 @@ class _HomePageState extends State<HomePage> {
187186
padding: const EdgeInsets.all(10),
188187
child: Icon(
189188
Icons.clear,
190-
color: Theme.of(context)
191-
.colorScheme
192-
.secondary,
189+
color:
190+
Theme.of(context).colorScheme.secondary,
193191
),
194192
),
195193
),
@@ -239,7 +237,7 @@ class _HomePageState extends State<HomePage> {
239237
padding: EdgeInsets.symmetric(vertical: 14.0),
240238
child: Icon(
241239
Icons.gesture,
242-
size: 30 ,
240+
size: 30,
243241
),
244242
),
245243
),
@@ -277,10 +275,11 @@ class _HomePageState extends State<HomePage> {
277275
child: Column(
278276
children: [
279277
SizedBox(
280-
width: MediaQuery.of(context).size.width * 0.9,
278+
width:
279+
MediaQuery.of(context).size.width * 0.9,
281280
child: FadeInImage(
282-
placeholder:
283-
const AssetImage('assets/images/Ai.webp'),
281+
placeholder: const AssetImage(
282+
'assets/images/Ai.webp'),
284283
image: MemoryImage(image),
285284
fit: BoxFit.contain,
286285
),
@@ -290,7 +289,7 @@ class _HomePageState extends State<HomePage> {
290289
child: SizedBox(
291290
height: 60,
292291
width:
293-
MediaQuery.of(context).size.width * 0.9,
292+
MediaQuery.of(context).size.width * 0.9,
294293
child: InkWell(
295294
focusColor: Theme.of(context)
296295
.colorScheme
@@ -309,12 +308,12 @@ class _HomePageState extends State<HomePage> {
309308
padding: const EdgeInsets.all(2),
310309
child: Container(
311310
width: MediaQuery.of(context)
312-
.size
313-
.width *
311+
.size
312+
.width *
314313
0.9,
315314
decoration: BoxDecoration(
316315
borderRadius:
317-
BorderRadius.circular(4),
316+
BorderRadius.circular(4),
318317
gradient: LinearGradient(
319318
begin: Alignment.topRight,
320319
end: Alignment.bottomLeft,
@@ -359,7 +358,7 @@ class _HomePageState extends State<HomePage> {
359358
children: [
360359
SizedBox(
361360
width:
362-
MediaQuery.of(context).size.height * 0.7,
361+
MediaQuery.of(context).size.height * 0.7,
363362
child: FadeInImage(
364363
placeholder: const AssetImage(
365364
'assets/images/Ai.webp'),
@@ -392,7 +391,7 @@ class _HomePageState extends State<HomePage> {
392391
width: 125,
393392
decoration: BoxDecoration(
394393
borderRadius:
395-
BorderRadius.circular(4),
394+
BorderRadius.circular(4),
396395
gradient: LinearGradient(
397396
begin: Alignment.topRight,
398397
end: Alignment.bottomLeft,
@@ -515,10 +514,11 @@ class _HomePageState extends State<HomePage> {
515514
child: Column(
516515
children: [
517516
SizedBox(
518-
width: MediaQuery.of(context).size.width * 0.9,
517+
width:
518+
MediaQuery.of(context).size.width * 0.9,
519519
child: FadeInImage(
520-
placeholder:
521-
const AssetImage('assets/images/Ai.webp'),
520+
placeholder: const AssetImage(
521+
'assets/images/Ai.webp'),
522522
image: MemoryImage(image),
523523
fit: BoxFit.contain,
524524
),

0 commit comments

Comments
 (0)