Skip to content

Commit 062bc4f

Browse files
committed
Please analyzer
1 parent cdf4409 commit 062bc4f

7 files changed

Lines changed: 11 additions & 22 deletions

File tree

lib/src/cloud/providers/cloud_provider.dart

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,13 @@ class _CloudNotifier extends AsyncNotifier<CloudModel> {
1818
await CloudDatabase.fetch(supabase.auth.currentUser!.email!);
1919
return response.match(
2020
(l) {
21-
print('left');
22-
print(l);
2321
final model = CloudModel(
2422
settings: ref.read(settingsProvider),
2523
snippets: ref.read(snippetBarStateProvider),
2624
);
27-
print(model.toJson());
2825
return model;
2926
},
3027
(r) {
31-
print('right');
32-
print(r);
3328
return r;
3429
},
3530
);

lib/src/cloud/services/supabase_db.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ class CloudDatabase {
2424
} on RangeError catch (_) {
2525
return const Left('Data could not be sent to the cloud!');
2626
} catch (ex) {
27-
print(ex);
2827
return Left(ex.toString());
2928
}
3029
}
@@ -36,7 +35,6 @@ class CloudDatabase {
3635
.filter('email', 'eq', email);
3736

3837
if (response.hasError) {
39-
print(response.error!.message);
4038
return Left(response.error!.message);
4139
}
4240

@@ -47,7 +45,6 @@ class CloudDatabase {
4745
} on RangeError catch (_) {
4846
return const Left('Data not present on the cloud!');
4947
} catch (ex) {
50-
print(ex);
5148
return const Left('error');
5249
}
5350
}

lib/src/factory.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ Future<void> initFileStorage() async {
5555
appDocumentsDirectory =
5656
Some(await Directory(docDir.path + '/ExCode').create());
5757
} catch (e) {
58-
print(e);
5958
appDocumentsDirectory = const None();
6059
}
6160
}

lib/src/home/providers/editor_provider.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ class _EditorContentModel extends StateNotifier<String> {
142142
}
143143

144144
Future<void> saveContent(String lang, String content) async {
145-
print(content);
146145
ref.watch(activeFileProvider).match(
147146
() async => await box.put('${lang}code', content),
148147
(t) async => await ref

lib/src/home/services/api.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import 'package:excode/src/factory.dart';
33
import 'package:excode/src/home/models/output_model.dart';
44
import 'package:excode/src/home/services/input_service.dart';
55
import 'package:excode/src/home/services/language.dart';
6-
import 'package:fpdart/fpdart.dart';
7-
import 'package:sentry_flutter/sentry_flutter.dart';
86

97
enum Language {
108
bash,
@@ -123,7 +121,6 @@ class ApiHandler {
123121
};
124122

125123
try {
126-
print(data);
127124
res = await dio.post(_executeUrl, data: data);
128125
} on DioError catch (err) {
129126
return OutputModel(
@@ -132,7 +129,7 @@ class ApiHandler {
132129
);
133130
}
134131

135-
print(res.data);
132+
// print(res.data);
136133

137134
if (res.data!['run']['stdout'].isEmpty) {
138135
res.data!['run']['stdout'] = 'No output';

lib/src/home/widgets/text_selection_controls.dart

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import 'package:excode/src/home/providers/editor_provider.dart';
22
import 'package:flutter/material.dart';
3-
import 'package:flutter/rendering.dart';
43
import 'dart:math' as math;
54

65
import 'package:hooks_riverpod/hooks_riverpod.dart';
@@ -41,11 +40,13 @@ class CustomTextSelectionControls extends TextSelectionControls {
4140
endpoints: endpoints,
4241
delegate: delegate,
4342
clipboardStatus: clipboardStatus,
44-
handleCut: canCut(delegate) ? () => handleCut(delegate) : null,
45-
handleCopy: canCopy(delegate) ? () => handleCopy(delegate) : null,
46-
handlePaste: canPaste(delegate) ? () => handlePaste(delegate) : null,
47-
handleSelectAll:
48-
canSelectAll(delegate) ? () => handleSelectAll(delegate) : null,
43+
handleCut: null, // canCut(delegate) ? () => handleCut(delegate) : null,
44+
handleCopy:
45+
null, // canCopy(delegate) ? () => handleCopy(delegate) : null,
46+
handlePaste:
47+
null, // canPaste(delegate) ? () => handlePaste(delegate) : null,
48+
handleSelectAll: null,
49+
// canSelectAll(delegate) ? () => handleSelectAll(delegate) : null,
4950
);
5051
}
5152

lib/src/settings/widgets/auth_dropdown.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,15 @@ class AuthDropDownWidget extends ConsumerWidget {
9191
final user = supabase.auth.currentUser;
9292
if (ref.watch(settingsProvider).isSaveToCloud &&
9393
user != null) {
94-
final res = await CloudDatabase.upsert(
94+
// final res =
95+
await CloudDatabase.upsert(
9596
CloudModel(
9697
settings: ref.watch(settingsProvider),
9798
snippets: ref.watch(snippetBarStateProvider),
9899
),
99100
user.email!,
100101
);
101-
res.match((l) => print(l), (r) => print(r));
102+
// res.match((l) => print(l), (r) => print(r));
102103
}
103104

104105
context.showSuccessSnackBar(

0 commit comments

Comments
 (0)