Skip to content

Commit aeed754

Browse files
committed
new README.md and format code
1 parent 077b269 commit aeed754

File tree

9 files changed

+48
-25
lines changed

9 files changed

+48
-25
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ TexFusion AI app created by flutter framework and it is a new AI art generation
1414
- Added 12 Styles including 3D render.
1515
- Download Image
1616
- Different Theme And Modes
17+
- Multi Languages
1718
- Custom Font
1819
- Lightweight & user-friendly
19-
- Cross Platform (Android , Linux , Windows and MacOs)
2020

2121
## How it work !
2222
- Make sure you enter more descriptive prompt. As this is kind of new api, it produces HD image with less descriptive prompt. So, make sure you describe the image correctly that you want as output.
23+
- The prompt in English only
2324

2425
Fork the repo 🔥 and don't forget to star the repo 🌟
2526

@@ -48,10 +49,20 @@ TexFusion AI app created by flutter framework and it is a new AI art generation
4849
<tr>
4950
<th>Dark Mode in Desktop</th>
5051
<th>Different Style</th>
52+
<th>Arabic Language</th>
5153
</tr>
5254
<tr>
5355
<td><img src="screenshots/02.png" width=600/></td>
5456
<td><img src="screenshots/06.png" width=300/></td>
57+
<td><img src="screenshots/11.png" width=300/></td>
58+
</tr>
59+
<tr>
60+
<th>Cross Platform</th>
61+
<th>Different Theme</th>
62+
</tr>
63+
<tr>
64+
<td><img src="screenshots/09.png" width=900/></td>
65+
<td><img src="screenshots/10.png" width=300/></td>
5566
</tr>
5667
</Table>
5768

lib/Pages/home_page.dart

Lines changed: 36 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ class _HomePageState extends State<HomePage> {
6262
await file.writeAsBytes(canvas).whenComplete(() {
6363
ScaffoldMessenger.of(context).showSnackBar(
6464
SnackBar(
65-
content: Text('${translation(context).imageWasSaved} : $filePath'),
65+
content:
66+
Text('${translation(context).imageWasSaved} : $filePath'),
6667
elevation: 10,
6768
),
6869
);
@@ -177,8 +178,10 @@ class _HomePageState extends State<HomePage> {
177178
autofocus: false,
178179
controller: _textEditingController,
179180
decoration: InputDecoration(
180-
hintText: translation(context).putAnythingInYourMind,
181-
labelText: translation(context).putAnythingInYourMind,
181+
hintText:
182+
translation(context).putAnythingInYourMind,
183+
labelText:
184+
translation(context).putAnythingInYourMind,
182185
border: const OutlineInputBorder(),
183186
suffixIcon: IconButton(
184187
onPressed: () {
@@ -370,16 +373,6 @@ class _HomePageState extends State<HomePage> {
370373
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
371374
crossAxisAlignment: CrossAxisAlignment.center,
372375
children: [
373-
SizedBox(
374-
width:
375-
MediaQuery.of(context).size.height * 0.7,
376-
child: FadeInImage(
377-
placeholder: const AssetImage(
378-
'assets/images/Ai.webp'),
379-
image: MemoryImage(image),
380-
fit: BoxFit.contain,
381-
),
382-
),
383376
Padding(
384377
padding: const EdgeInsets.all(10),
385378
child: InkWell(
@@ -438,6 +431,16 @@ class _HomePageState extends State<HomePage> {
438431
),
439432
),
440433
),
434+
SizedBox(
435+
width:
436+
MediaQuery.of(context).size.height * 0.7,
437+
child: FadeInImage(
438+
placeholder: const AssetImage(
439+
'assets/images/Ai.webp'),
440+
image: MemoryImage(image),
441+
fit: BoxFit.contain,
442+
),
443+
),
441444
],
442445
),
443446
);
@@ -451,16 +454,6 @@ class _HomePageState extends State<HomePage> {
451454
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
452455
crossAxisAlignment: CrossAxisAlignment.center,
453456
children: [
454-
SizedBox(
455-
width:
456-
MediaQuery.of(context).size.height * 0.7,
457-
child: FadeInImage(
458-
placeholder: const AssetImage(
459-
'assets/images/Ai.webp'),
460-
image: MemoryImage(image),
461-
fit: BoxFit.contain,
462-
),
463-
),
464457
Padding(
465458
padding: const EdgeInsets.all(10),
466459
child: InkWell(
@@ -519,6 +512,16 @@ class _HomePageState extends State<HomePage> {
519512
),
520513
),
521514
),
515+
SizedBox(
516+
width:
517+
MediaQuery.of(context).size.height * 0.7,
518+
child: FadeInImage(
519+
placeholder: const AssetImage(
520+
'assets/images/Ai.webp'),
521+
image: MemoryImage(image),
522+
fit: BoxFit.contain,
523+
),
524+
),
522525
],
523526
),
524527
);
@@ -611,7 +614,16 @@ class _HomePageState extends State<HomePage> {
611614
print(error);
612615
}
613616
return Center(
614-
child: Text("${translation(context).failed} .${translation(context).noResultFound}"),
617+
child: Padding(
618+
padding: const EdgeInsets.all(50.0),
619+
child: Text(
620+
"${translation(context).failed} .${translation(context).noResultFound}",
621+
style: const TextStyle(
622+
fontWeight: FontWeight.bold,
623+
fontSize: 20,
624+
),
625+
),
626+
),
615627
);
616628
}
617629
return Container();

screenshots/01.png

-6.75 KB
Loading

screenshots/03.png

-5.62 KB
Loading

screenshots/04.png

-3.82 KB
Loading

screenshots/05.png

-3.13 KB
Loading

screenshots/09.png

30.2 KB
Loading

screenshots/10.png

288 KB
Loading

screenshots/11.png

32.7 KB
Loading

0 commit comments

Comments
 (0)