Skip to content

Commit 8fc95b9

Browse files
committed
fix README.md and format code
1 parent aeed754 commit 8fc95b9

11 files changed

+15
-13
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ TexFusion AI app created by flutter framework and it is a new AI art generation
6161
<th>Different Theme</th>
6262
</tr>
6363
<tr>
64-
<td><img src="screenshots/09.png" width=900/></td>
65-
<td><img src="screenshots/10.png" width=300/></td>
64+
<td><img src="screenshots/10.png" width=700/></td>
65+
<td><img src="screenshots/09.png" width=300/></td>
6666
</tr>
6767
</Table>
6868

lib/Pages/about_page.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class AboutPage extends StatelessWidget {
143143
ElevatedButton(
144144
onPressed: () async {
145145
final Uri url =
146-
Uri.parse('https://github.com/VikramadityaDev/');
146+
Uri.parse('https://github.com/VikramadityaDev/');
147147
if (!await launchUrl(url,
148148
mode: LaunchMode.externalApplication)) {
149149
throw Exception('Could not launch $url');
@@ -157,7 +157,7 @@ class AboutPage extends StatelessWidget {
157157
ElevatedButton(
158158
onPressed: () async {
159159
final Uri url =
160-
Uri.parse('https://telegram.me/Aditya@1190/');
160+
Uri.parse('https://telegram.me/Aditya@1190/');
161161
if (!await launchUrl(url,
162162
mode: LaunchMode.externalApplication)) {
163163
throw Exception('Could not launch $url');

lib/Pages/settings_page.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ class _SettingsPageState extends State<SettingsPage> {
177177
),
178178
child: CheckboxListTile(
179179
title: Text(language.name),
180-
value: state.locale.languageCode == _languages[index].languageCode,
180+
value: state.locale.languageCode ==
181+
_languages[index].languageCode,
181182
onChanged: (value) {
182183
_appLanguageCubit
183184
.changeLanguage(language.languageCode);

lib/bloc/app_directory_cubit.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import '../utils/strings.dart';
77
part 'app_directory_state.dart';
88

99
class AppDirectoryCubit extends Cubit<AppDirectoryState> {
10-
AppDirectoryCubit(String path) : super(AppDirectoryInitial(path)){
10+
AppDirectoryCubit(String path) : super(AppDirectoryInitial(path)) {
1111
loadPath();
1212
}
1313

lib/bloc/app_directory_state.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ abstract class AppDirectoryState extends Equatable {
1010
class AppDirectoryInitial extends AppDirectoryState {
1111
const AppDirectoryInitial(super.path);
1212
}
13+
1314
class AppDirectoryUpdated extends AppDirectoryState {
1415
const AppDirectoryUpdated(super.path);
15-
}
16+
}

lib/bloc/app_language_cubit.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import 'package:text_to_image_gen/utils/app_language.dart';
77
part 'app_language_state.dart';
88

99
class AppLanguageCubit extends Cubit<AppLanguageState> {
10-
AppLanguageCubit(Locale locale) : super(AppLanguageInitial(locale)){
10+
AppLanguageCubit(Locale locale) : super(AppLanguageInitial(locale)) {
1111
loadLanguage();
1212
}
1313

lib/bloc/app_theme_cubit.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,4 @@ class AppThemeCubit extends Cubit<AppThemeState> {
2626
await ThemeSharedPreferences.setThemeName(appThemes[newTheme]!);
2727
emit(AppThemeUpdate(newTheme));
2828
}
29-
3029
}

lib/bloc/app_theme_state.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ abstract class AppThemeState extends Equatable {
1111
class AppThemeInitial extends AppThemeState {
1212
const AppThemeInitial(AppTheme theme) : super(theme);
1313
}
14+
1415
class AppThemeUpdate extends AppThemeState {
1516
const AppThemeUpdate(AppTheme theme) : super(theme);
16-
}
17+
}

lib/utils/app_directory.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ class PathSharedPreferences {
1212
final prefs = await SharedPreferences.getInstance();
1313
return prefs.getString(_keyPath);
1414
}
15-
}
15+
}

lib/utils/app_theme_mode.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ class ThemeSharedPreferences {
2323
final prefs = await SharedPreferences.getInstance();
2424
return prefs.getString(_keyMode);
2525
}
26-
}
26+
}

0 commit comments

Comments
 (0)