@@ -32,6 +32,9 @@ class _HomePageState extends State<HomePage> {
32
32
AIStyle .noStyle: 'No style' ,
33
33
AIStyle .render3D: '3D render' ,
34
34
AIStyle .anime: 'Anime' ,
35
+ AIStyle .islamic: 'Islamic' ,
36
+ AIStyle .iconography: 'Icon Graphy' ,
37
+ AIStyle .mosaic: 'Mosaic' ,
35
38
AIStyle .moreDetails: 'More Detailed' ,
36
39
AIStyle .cyberPunk: 'CyberPunk' ,
37
40
AIStyle .cartoon: 'Cartoon' ,
@@ -52,18 +55,14 @@ class _HomePageState extends State<HomePage> {
52
55
await appDir.create ();
53
56
}
54
57
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'' ' ;
56
59
final filePath = xp.join (appDir.path, image);
57
60
final file = File (filePath);
58
61
await file.writeAsBytes (canvas).whenComplete (() {
59
62
ScaffoldMessenger .of (context).showSnackBar (
60
63
SnackBar (
61
64
content: Text ('Image was Downloaded in $filePath ' ),
62
65
elevation: 10 ,
63
- /* padding: const EdgeInsets.all(15),
64
- shape: RoundedRectangleBorder(
65
- borderRadius: BorderRadius.circular(15.0),
66
- ),*/
67
66
),
68
67
);
69
68
});
@@ -187,9 +186,8 @@ class _HomePageState extends State<HomePage> {
187
186
padding: const EdgeInsets .all (10 ),
188
187
child: Icon (
189
188
Icons .clear,
190
- color: Theme .of (context)
191
- .colorScheme
192
- .secondary,
189
+ color:
190
+ Theme .of (context).colorScheme.secondary,
193
191
),
194
192
),
195
193
),
@@ -239,7 +237,7 @@ class _HomePageState extends State<HomePage> {
239
237
padding: EdgeInsets .symmetric (vertical: 14.0 ),
240
238
child: Icon (
241
239
Icons .gesture,
242
- size: 30 ,
240
+ size: 30 ,
243
241
),
244
242
),
245
243
),
@@ -277,10 +275,11 @@ class _HomePageState extends State<HomePage> {
277
275
child: Column (
278
276
children: [
279
277
SizedBox (
280
- width: MediaQuery .of (context).size.width * 0.9 ,
278
+ width:
279
+ MediaQuery .of (context).size.width * 0.9 ,
281
280
child: FadeInImage (
282
- placeholder:
283
- const AssetImage ( 'assets/images/Ai.webp' ),
281
+ placeholder: const AssetImage (
282
+ 'assets/images/Ai.webp' ),
284
283
image: MemoryImage (image),
285
284
fit: BoxFit .contain,
286
285
),
@@ -290,7 +289,7 @@ class _HomePageState extends State<HomePage> {
290
289
child: SizedBox (
291
290
height: 60 ,
292
291
width:
293
- MediaQuery .of (context).size.width * 0.9 ,
292
+ MediaQuery .of (context).size.width * 0.9 ,
294
293
child: InkWell (
295
294
focusColor: Theme .of (context)
296
295
.colorScheme
@@ -309,12 +308,12 @@ class _HomePageState extends State<HomePage> {
309
308
padding: const EdgeInsets .all (2 ),
310
309
child: Container (
311
310
width: MediaQuery .of (context)
312
- .size
313
- .width *
311
+ .size
312
+ .width *
314
313
0.9 ,
315
314
decoration: BoxDecoration (
316
315
borderRadius:
317
- BorderRadius .circular (4 ),
316
+ BorderRadius .circular (4 ),
318
317
gradient: LinearGradient (
319
318
begin: Alignment .topRight,
320
319
end: Alignment .bottomLeft,
@@ -359,7 +358,7 @@ class _HomePageState extends State<HomePage> {
359
358
children: [
360
359
SizedBox (
361
360
width:
362
- MediaQuery .of (context).size.height * 0.7 ,
361
+ MediaQuery .of (context).size.height * 0.7 ,
363
362
child: FadeInImage (
364
363
placeholder: const AssetImage (
365
364
'assets/images/Ai.webp' ),
@@ -392,7 +391,7 @@ class _HomePageState extends State<HomePage> {
392
391
width: 125 ,
393
392
decoration: BoxDecoration (
394
393
borderRadius:
395
- BorderRadius .circular (4 ),
394
+ BorderRadius .circular (4 ),
396
395
gradient: LinearGradient (
397
396
begin: Alignment .topRight,
398
397
end: Alignment .bottomLeft,
@@ -515,10 +514,11 @@ class _HomePageState extends State<HomePage> {
515
514
child: Column (
516
515
children: [
517
516
SizedBox (
518
- width: MediaQuery .of (context).size.width * 0.9 ,
517
+ width:
518
+ MediaQuery .of (context).size.width * 0.9 ,
519
519
child: FadeInImage (
520
- placeholder:
521
- const AssetImage ( 'assets/images/Ai.webp' ),
520
+ placeholder: const AssetImage (
521
+ 'assets/images/Ai.webp' ),
522
522
image: MemoryImage (image),
523
523
fit: BoxFit .contain,
524
524
),
0 commit comments