Skip to content

Commit

Permalink
applied suggestions and pakages upgraded
Browse files Browse the repository at this point in the history
  • Loading branch information
IsmailHosenIsmailJames committed Jun 29, 2024
1 parent 28b5bb1 commit d68fb56
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
3 changes: 0 additions & 3 deletions lib/src/screens/auth/login/login.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class _LoginPageState extends State<LoginPage> {
body: {"mobile_number": numberController.text},
);
if (response.statusCode == 200) {
print(response.body);
Fluttertoast.showToast(msg: jsonDecode(response.body)["message"]);
final userModelData = User.fromMap(jsonDecode(response.body)['user']);
final box = Hive.box("info");
Expand All @@ -52,8 +51,6 @@ class _LoginPageState extends State<LoginPage> {

if (response2.statusCode == 200) {
final decodeData = jsonDecode(response2.body);
print("decoded data ..............");
print(decodeData);
List<Map> listOfPalyers = List<Map>.from(decodeData["data"]);
if (listOfPalyers.isNotEmpty) {
await box.put("team", listOfPalyers);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -593,10 +593,8 @@ class _PlayerListState extends State<PlayerList> {
if ((PlayesrMaxMinRoules.max[role] ?? 3) >
alreadySelectedSameRole) {
if (widget.willUpdate) {
print("object");
int c = getPlayerChangeCount(
playerListControlller.selectedPlayer);
print("object");

if (!(4 - c >= 0)) {
showDialog(
Expand Down
2 changes: 2 additions & 0 deletions lib/src/screens/edit_team/your_team/your_team.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// ignore_for_file: use_build_context_synchronously

import 'dart:convert';
import 'dart:io';
import 'dart:typed_data';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:get/get.dart';
import 'package:get/get_rx/get_rx.dart';

class HomeTabControllerGetx extends GetxController {
RxBool isPlayerList = false.obs;
Expand Down
10 changes: 5 additions & 5 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,10 @@ packages:
dependency: "direct main"
description:
name: fluentui_system_icons
sha256: c4e3d0a9d7f7a32592f86f0821ccc81fbe125b9591f9cde05dbdfc2090a71cac
sha256: b4e0054ffa198073d2eef6009e79cb7ab770c049f553c39a67ae62523d7286fe
url: "https://pub.dev"
source: hosted
version: "1.1.241"
version: "1.1.246"
flutter:
dependency: "direct main"
description: flutter
Expand Down Expand Up @@ -465,7 +465,7 @@ packages:
source: hosted
version: "3.0.0"
path:
dependency: transitive
dependency: "direct main"
description:
name: path
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
Expand All @@ -484,10 +484,10 @@ packages:
dependency: transitive
description:
name: path_provider_android
sha256: "9c96da072b421e98183f9ea7464898428e764bc0ce5567f27ec8693442e72514"
sha256: bca87b0165ffd7cdb9cad8edd22d18d2201e886d9a9f19b4fb3452ea7df3a72a
url: "https://pub.dev"
source: hosted
version: "2.2.5"
version: "2.2.6"
path_provider_foundation:
dependency: transitive
description:
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ dependencies:
package_info_plus: ^8.0.0
device_info_plus: ^10.1.0
cached_network_image: ^3.3.1
path: any

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit d68fb56

Please sign in to comment.