Skip to content

Commit

Permalink
fix(coms): removed unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sambrus committed Dec 10, 2024
1 parent 2abdd22 commit ad69096
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
1 change: 0 additions & 1 deletion client_mobile/lib/pages/auth/register.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// import 'dart:io';
import 'package:client_mobile/services/login/auth_service.dart';
import 'package:client_mobile/services/microsoft/microsoft_auth_service.dart';
import 'package:client_mobile/tools/utils.dart';
Expand Down
6 changes: 3 additions & 3 deletions client_mobile/lib/pages/dashboard/dashboard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ class DashboardPage extends StatefulWidget {
}

class _DashboardPageState extends State<DashboardPage> {
int _currentIndex = 0; // Pour suivre l'index actuel
int _currentIndex = 0;

final List<Widget> _pages = [
WorkflowPage(), // Votre page actuelle avec les boutons Action et Réaction
ServiceConnectionPage(), // Une nouvelle page pour la connexion des services
WorkflowPage(),
ServiceConnectionPage(),
];

void _onTabTapped(int index) {
Expand Down
3 changes: 1 addition & 2 deletions client_mobile/lib/pages/dashboard/service_selection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import 'package:client_mobile/pages/dashboard/action_selection_page.dart';
import 'package:client_mobile/services/about/about_service.dart';
import 'package:flutter/material.dart';

// Page principale avec FutureBuilder
class ServiceSelectionPage extends StatelessWidget {
final Function(WorkflowActionReaction, WorkflowService) onActionSelected;
final bool isAction;
Expand All @@ -23,7 +22,7 @@ class ServiceSelectionPage extends StatelessWidget {
title: const Text('Select a Service'),
),
body: FutureBuilder<List<WorkflowService>>(
future: AboutService.getAbout(), // Appelle la méthode API
future: AboutService.getAbout(),
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.waiting) {
return const Center(child: CircularProgressIndicator());
Expand Down
4 changes: 0 additions & 4 deletions client_mobile/lib/services/about/about_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ class AboutService {

if (response.statusCode == 200) {
final jsonData = json.decode(response.body);
print("$token");
// debugPrint("body : ${response.body}");
for (final service in jsonData['server']['services'])
print("service : $service");

return (jsonData['server']['services'] as List)
.map((service) => WorkflowService.fromJson(service))
Expand Down

0 comments on commit ad69096

Please sign in to comment.