Skip to content

Commit

Permalink
[BUG FIX] login screen update ui and fixed logout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ankit-serpentcs committed May 27, 2020
1 parent b0668d0 commit bf4d47f
Show file tree
Hide file tree
Showing 76 changed files with 36 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .flutter-plugins-dependencies
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"_info":"// This is a generated file; do not edit or check into version control.","dependencyGraph":[{"name":"shared_preferences","dependencies":["shared_preferences_macos","shared_preferences_web"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]}]}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"shared_preferences","path":"/home/serpentcs/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.7+3/","dependencies":[]}],"android":[{"name":"shared_preferences","path":"/home/serpentcs/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.7+3/","dependencies":[]}],"macos":[{"name":"shared_preferences_macos","path":"/home/serpentcs/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+9/","dependencies":[]}],"linux":[],"windows":[],"web":[{"name":"shared_preferences_web","path":"/home/serpentcs/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+7/","dependencies":[]}]},"dependencyGraph":[{"name":"shared_preferences","dependencies":["shared_preferences_macos","shared_preferences_web"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]}],"date_created":"2020-05-27 17:41:06.068478","version":"1.17.1"}
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .metadata
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified android/app/build.gradle
100644 → 100755
Empty file.
Empty file modified android/app/src/debug/AndroidManifest.xml
100644 → 100755
Empty file.
Empty file modified android/app/src/main/AndroidManifest.xml
100644 → 100755
Empty file.
Empty file.
Empty file modified android/app/src/main/res/drawable/launch_background.xml
100644 → 100755
Empty file.
Empty file modified android/app/src/main/res/mipmap-hdpi/ic_launcher.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified android/app/src/main/res/mipmap-mdpi/ic_launcher.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified android/app/src/main/res/values/styles.xml
100644 → 100755
Empty file.
Empty file modified android/app/src/profile/AndroidManifest.xml
100644 → 100755
Empty file.
Empty file modified android/build.gradle
100644 → 100755
Empty file.
Empty file modified android/gradle.properties
100644 → 100755
Empty file.
Empty file modified android/gradle/wrapper/gradle-wrapper.properties
100644 → 100755
Empty file.
Empty file modified android/settings.gradle
100644 → 100755
Empty file.
Empty file modified ios/Flutter/AppFrameworkInfo.plist
100644 → 100755
Empty file.
Empty file modified ios/Flutter/Debug.xcconfig
100644 → 100755
Empty file.
Empty file modified ios/Flutter/Release.xcconfig
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions ios/Flutter/flutter_export_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export "FLUTTER_APPLICATION_PATH=/home/serpentcs/Ankit/Odoo-JsonRpc-with-Flutter
export "FLUTTER_TARGET=lib/main.dart"
export "FLUTTER_BUILD_DIR=build"
export "SYMROOT=${SOURCE_ROOT}/../build/ios"
export "OTHER_LDFLAGS=$(inherited) -framework Flutter"
export "FLUTTER_FRAMEWORK_DIR=/home/serpentcs/Ankit/flutter/bin/cache/artifacts/engine/ios"
export "FLUTTER_BUILD_NAME=1.0.0"
export "FLUTTER_BUILD_NUMBER=1"
Empty file modified ios/Runner.xcodeproj/project.pbxproj
100644 → 100755
Empty file.
Empty file.
Empty file modified ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
100644 → 100755
Empty file.
Empty file modified ios/Runner.xcworkspace/contents.xcworkspacedata
100644 → 100755
Empty file.
Empty file modified ios/Runner/AppDelegate.swift
100644 → 100755
Empty file.
Empty file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
100644 → 100755
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
100644 → 100755
Empty file.
Empty file modified ios/Runner/Base.lproj/LaunchScreen.storyboard
100644 → 100755
Empty file.
Empty file modified ios/Runner/Base.lproj/Main.storyboard
100644 → 100755
Empty file.
Empty file modified ios/Runner/Info.plist
100644 → 100755
Empty file.
Empty file modified ios/Runner/Runner-Bridging-Header.h
100644 → 100755
Empty file.
Empty file modified lib/app/data/pojo/partners.dart
100644 → 100755
Empty file.
Empty file modified lib/app/data/pojo/user.dart
100644 → 100755
Empty file.
Empty file modified lib/app/data/services/globals.dart
100644 → 100755
Empty file.
Empty file modified lib/app/data/services/odoo_api.dart
100644 → 100755
Empty file.
Empty file modified lib/app/data/services/odoo_response.dart
100644 → 100755
Empty file.
Empty file modified lib/app/data/services/odoo_version.dart
100644 → 100755
Empty file.
Empty file modified lib/app/data/services/utils.dart
100644 → 100755
Empty file.
Empty file modified lib/app/pages/home.dart
100644 → 100755
Empty file.
16 changes: 11 additions & 5 deletions lib/app/pages/login.dart
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,17 @@ class _LoginState extends Base<Login> {
odoo.authenticate(_email, _pass, _selectedDb).then(
(http.Response auth) {
if (auth.body != null) {
hideLoadingSuccess("Logged in successfully");
User user = User.fromJson(jsonDecode(auth.body));
saveUser(json.encode(user));
saveOdooUrl(odooURL);
pushReplacement(Home());
if (user != null && user.result != null) {
print(auth.body.toString());
hideLoadingSuccess("Logged in successfully");
saveUser(json.encode(user));
saveOdooUrl(odooURL);
pushReplacement(Home());
} else {
showMessage("Authentication Failed",
"Please Enter Valid Email or Password");
}
} else {
showMessage("Authentication Failed",
"Please Enter Valid Email or Password");
Expand Down Expand Up @@ -326,7 +332,7 @@ class _LoginState extends Base<Login> {
child: ListView(
padding: EdgeInsets.all(10.0),
children: <Widget>[
!isLoggedIn() ? checkURLWidget : SizedBox(height: 0.0),
getURL() == null ? checkURLWidget : SizedBox(height: 0.0),
loginWidget,
],
),
Expand Down
Empty file modified lib/app/pages/partner_details.dart
100644 → 100755
Empty file.
5 changes: 0 additions & 5 deletions lib/app/pages/profile.dart
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:odoo_client/app/data/services/odoo_api.dart';
import 'package:odoo_client/app/data/services/odoo_response.dart';
import 'package:odoo_client/app/data/services/utils.dart';
import 'package:odoo_client/app/utility/constant.dart';
import 'package:odoo_client/app/utility/strings.dart';
import 'package:odoo_client/base.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:odoo_client/app/data/services/globals.dart';

import 'login.dart';

Expand Down
Empty file modified lib/app/pages/settings.dart
100644 → 100755
Empty file.
Empty file modified lib/app/utility/constant.dart
100644 → 100755
Empty file.
Empty file modified lib/app/utility/strings.dart
100644 → 100755
Empty file.
Empty file modified lib/base.dart
100644 → 100755
Empty file.
Empty file modified lib/generated/i18n.dart
100644 → 100755
Empty file.
Empty file modified lib/main.dart
100644 → 100755
Empty file.
46 changes: 23 additions & 23 deletions pubspec.lock
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,42 +7,42 @@ packages:
name: archive
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.11"
version: "2.0.13"
args:
dependency: transitive
description:
name: args
url: "https://pub.dartlang.org"
source: hosted
version: "1.5.2"
version: "1.6.0"
async:
dependency: transitive
description:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.4.0"
version: "2.4.1"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.5"
version: "2.0.0"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.2"
version: "1.1.3"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.14.11"
version: "1.14.12"
convert:
dependency: transitive
description:
Expand All @@ -56,7 +56,7 @@ packages:
name: crypto
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.3"
version: "2.1.4"
cupertino_icons:
dependency: "direct main"
description:
Expand All @@ -75,14 +75,14 @@ packages:
name: flutter_easyloading
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.1"
version: "1.1.4"
flutter_spinkit:
dependency: transitive
description:
name: flutter_spinkit
url: "https://pub.dartlang.org"
source: hosted
version: "4.1.1+1"
version: "4.1.2+1"
flutter_test:
dependency: "direct dev"
description: flutter
Expand All @@ -99,21 +99,21 @@ packages:
name: http
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.0+4"
version: "0.12.1"
http_parser:
dependency: transitive
description:
name: http_parser
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.3"
version: "3.1.4"
image:
dependency: transitive
description:
name: image
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.4"
version: "2.1.12"
matcher:
dependency: transitive
description:
Expand Down Expand Up @@ -141,7 +141,7 @@ packages:
name: pedantic
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0+1"
version: "1.9.0"
petitparser:
dependency: transitive
description:
Expand All @@ -155,35 +155,35 @@ packages:
name: quiver
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.5"
version: "2.1.3"
shared_preferences:
dependency: "direct main"
description:
name: shared_preferences
url: "https://pub.dartlang.org"
source: hosted
version: "0.5.6"
version: "0.5.7+3"
shared_preferences_macos:
dependency: transitive
description:
name: shared_preferences_macos
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.1+3"
version: "0.0.1+9"
shared_preferences_platform_interface:
dependency: transitive
description:
name: shared_preferences_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.1"
version: "1.0.4"
shared_preferences_web:
dependency: transitive
description:
name: shared_preferences_web
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.2+2"
version: "0.1.2+7"
sky_engine:
dependency: transitive
description: flutter
Expand All @@ -195,7 +195,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.5.5"
version: "1.7.0"
sprintf:
dependency: "direct main"
description:
Expand Down Expand Up @@ -237,7 +237,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.11"
version: "0.2.15"
typed_data:
dependency: transitive
description:
Expand Down Expand Up @@ -265,7 +265,7 @@ packages:
name: xml
url: "https://pub.dartlang.org"
source: hosted
version: "3.5.0"
version: "3.6.1"
sdks:
dart: ">=2.5.0 <3.0.0"
flutter: ">=1.12.13+hotfix.4 <2.0.0"
dart: ">=2.6.0 <3.0.0"
flutter: ">=1.12.13+hotfix.5 <2.0.0"
Empty file modified pubspec.yaml
100644 → 100755
Empty file.
Empty file modified res/values/strings_en.arb
100644 → 100755
Empty file.
Empty file modified test/widget_test.dart
100644 → 100755
Empty file.

0 comments on commit bf4d47f

Please sign in to comment.