Skip to content

Commit

Permalink
Merge pull request #26 from MurilonND/develop
Browse files Browse the repository at this point in the history
fix: infinite loading
  • Loading branch information
MurilonND authored Aug 9, 2023
2 parents c4c8e3c + 3ff6bb1 commit 7482182
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ android {
applicationId "com.example.liquid_art_ai"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion 21
minSdkVersion 30
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class _ConnectionPageState extends State<ConnectionPage> {
hostnameController = TextEditingController(text: _galaxyCubit.state.hostname);
ipAddressController = TextEditingController(text: _galaxyCubit.state.ipAddress);
passwordController = TextEditingController(text: _galaxyCubit.state.password);
lgScreensController = TextEditingController(text: _galaxyCubit.state.lgScreens.toString());
portController = TextEditingController(text: _galaxyCubit.state.port.toString());
lgScreensController = TextEditingController(text: _galaxyCubit.state.lgScreens.toString() == '0'? '': _galaxyCubit.state.lgScreens.toString());
portController = TextEditingController(text: _galaxyCubit.state.port.toString() == '0'? '': _galaxyCubit.state.port.toString());


super.initState();
Expand Down
5 changes: 4 additions & 1 deletion lib/src/features/drawer/presentation/pages/drawer_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class _DrawerPageState extends State<DrawerPage> {
String image = "";
String imageBytes = "";
bool isLoaded = false;
bool isLoading = true;
bool isSaving = false;
bool placeHolder = true;

Expand Down Expand Up @@ -356,10 +357,11 @@ class _DrawerPageState extends State<DrawerPage> {
onTap: modelValue != null &&
sizeValue != null &&
imagePromptController.text.isNotEmpty &&
isLoaded
isLoading
? () async {
setState(() {
isLoaded = false;
isLoading = false;
placeHolder = false;
image = '';
imageBytes = '';
Expand Down Expand Up @@ -393,6 +395,7 @@ class _DrawerPageState extends State<DrawerPage> {
}
setState(() {
isLoaded = true;
isLoading = true;
});
}
: null,
Expand Down

0 comments on commit 7482182

Please sign in to comment.