diff --git a/lib/src/cloud/providers/cloud_provider.dart b/lib/src/cloud/providers/cloud_provider.dart index 4491582..432d068 100644 --- a/lib/src/cloud/providers/cloud_provider.dart +++ b/lib/src/cloud/providers/cloud_provider.dart @@ -18,18 +18,13 @@ class _CloudNotifier extends AsyncNotifier { await CloudDatabase.fetch(supabase.auth.currentUser!.email!); return response.match( (l) { - print('left'); - print(l); final model = CloudModel( settings: ref.read(settingsProvider), snippets: ref.read(snippetBarStateProvider), ); - print(model.toJson()); return model; }, (r) { - print('right'); - print(r); return r; }, ); diff --git a/lib/src/cloud/services/supabase_db.dart b/lib/src/cloud/services/supabase_db.dart index 05a0a9b..b633beb 100644 --- a/lib/src/cloud/services/supabase_db.dart +++ b/lib/src/cloud/services/supabase_db.dart @@ -24,7 +24,6 @@ class CloudDatabase { } on RangeError catch (_) { return const Left('Data could not be sent to the cloud!'); } catch (ex) { - print(ex); return Left(ex.toString()); } } @@ -36,7 +35,6 @@ class CloudDatabase { .filter('email', 'eq', email); if (response.hasError) { - print(response.error!.message); return Left(response.error!.message); } @@ -47,7 +45,6 @@ class CloudDatabase { } on RangeError catch (_) { return const Left('Data not present on the cloud!'); } catch (ex) { - print(ex); return const Left('error'); } } diff --git a/lib/src/factory.dart b/lib/src/factory.dart index 29fb41b..1d40181 100644 --- a/lib/src/factory.dart +++ b/lib/src/factory.dart @@ -55,7 +55,6 @@ Future initFileStorage() async { appDocumentsDirectory = Some(await Directory(docDir.path + '/ExCode').create()); } catch (e) { - print(e); appDocumentsDirectory = const None(); } } diff --git a/lib/src/home/providers/editor_provider.dart b/lib/src/home/providers/editor_provider.dart index dc8e2c3..61f5f38 100644 --- a/lib/src/home/providers/editor_provider.dart +++ b/lib/src/home/providers/editor_provider.dart @@ -142,7 +142,6 @@ class _EditorContentModel extends StateNotifier { } Future saveContent(String lang, String content) async { - print(content); ref.watch(activeFileProvider).match( () async => await box.put('${lang}code', content), (t) async => await ref diff --git a/lib/src/home/services/api.dart b/lib/src/home/services/api.dart index 93e0da4..eef5675 100644 --- a/lib/src/home/services/api.dart +++ b/lib/src/home/services/api.dart @@ -3,8 +3,6 @@ import 'package:excode/src/factory.dart'; import 'package:excode/src/home/models/output_model.dart'; import 'package:excode/src/home/services/input_service.dart'; import 'package:excode/src/home/services/language.dart'; -import 'package:fpdart/fpdart.dart'; -import 'package:sentry_flutter/sentry_flutter.dart'; enum Language { bash, @@ -123,7 +121,6 @@ class ApiHandler { }; try { - print(data); res = await dio.post(_executeUrl, data: data); } on DioError catch (err) { return OutputModel( @@ -132,7 +129,7 @@ class ApiHandler { ); } - print(res.data); + // print(res.data); if (res.data!['run']['stdout'].isEmpty) { res.data!['run']['stdout'] = 'No output'; diff --git a/lib/src/home/widgets/text_selection_controls.dart b/lib/src/home/widgets/text_selection_controls.dart index b881ae4..003a88e 100644 --- a/lib/src/home/widgets/text_selection_controls.dart +++ b/lib/src/home/widgets/text_selection_controls.dart @@ -1,6 +1,5 @@ import 'package:excode/src/home/providers/editor_provider.dart'; import 'package:flutter/material.dart'; -import 'package:flutter/rendering.dart'; import 'dart:math' as math; import 'package:hooks_riverpod/hooks_riverpod.dart'; @@ -41,11 +40,13 @@ class CustomTextSelectionControls extends TextSelectionControls { endpoints: endpoints, delegate: delegate, clipboardStatus: clipboardStatus, - handleCut: canCut(delegate) ? () => handleCut(delegate) : null, - handleCopy: canCopy(delegate) ? () => handleCopy(delegate) : null, - handlePaste: canPaste(delegate) ? () => handlePaste(delegate) : null, - handleSelectAll: - canSelectAll(delegate) ? () => handleSelectAll(delegate) : null, + handleCut: null, // canCut(delegate) ? () => handleCut(delegate) : null, + handleCopy: + null, // canCopy(delegate) ? () => handleCopy(delegate) : null, + handlePaste: + null, // canPaste(delegate) ? () => handlePaste(delegate) : null, + handleSelectAll: null, + // canSelectAll(delegate) ? () => handleSelectAll(delegate) : null, ); } diff --git a/lib/src/settings/widgets/auth_dropdown.dart b/lib/src/settings/widgets/auth_dropdown.dart index b78755c..93389fb 100644 --- a/lib/src/settings/widgets/auth_dropdown.dart +++ b/lib/src/settings/widgets/auth_dropdown.dart @@ -91,14 +91,15 @@ class AuthDropDownWidget extends ConsumerWidget { final user = supabase.auth.currentUser; if (ref.watch(settingsProvider).isSaveToCloud && user != null) { - final res = await CloudDatabase.upsert( + // final res = + await CloudDatabase.upsert( CloudModel( settings: ref.watch(settingsProvider), snippets: ref.watch(snippetBarStateProvider), ), user.email!, ); - res.match((l) => print(l), (r) => print(r)); + // res.match((l) => print(l), (r) => print(r)); } context.showSuccessSnackBar(