Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: debug config, utils folder typo #36

Merged
merged 1 commit into from
Feb 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions client/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "client",
"request": "launch",
"type": "dart"
},
{
"name": "client (profile mode)",
"request": "launch",
"type": "dart",
"flutterMode": "profile"
},
{
"name": "client (release mode)",
"request": "launch",
"type": "dart",
"flutterMode": "release"
}
]
}
6 changes: 4 additions & 2 deletions client/lib/core/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ import 'package:flutter/material.dart';
import 'package:toiki/core/bloc_providers.dart';
import 'package:toiki/core/repository_providers.dart';
import 'package:toiki/screens/main_screen.dart';
import 'package:toiki/utls/constants.dart';
import 'package:toiki/utils/constants.dart';

class App extends StatelessWidget {
const App({Key? key}) : super(key: key);
const App({
super.key,
});

@override
Widget build(BuildContext context) {
Expand Down
5 changes: 4 additions & 1 deletion client/lib/core/bloc_providers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import 'package:toiki/blocs/conversion/conversion_bloc.dart';
import 'package:toiki/repositories/conversion_repository.dart';

class BlocProviders extends StatelessWidget {
const BlocProviders({Key? key, required this.child}) : super(key: key);
const BlocProviders({
super.key,
required this.child,
});

final Widget child;

Expand Down
7 changes: 5 additions & 2 deletions client/lib/core/repository_providers.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:toiki/repositories/conversion_repository.dart';
import 'package:toiki/utls/api.dart';
import 'package:toiki/utils/api.dart';

class RepositoryProviders extends StatelessWidget {
const RepositoryProviders({Key? key, required this.child}) : super(key: key);
const RepositoryProviders({
super.key,
required this.child,
});

final Widget child;

Expand Down
5 changes: 3 additions & 2 deletions client/lib/exceptions/http_entity_not_found_exception.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:toiki/exceptions/http_bad_request_exception.dart';

class HttpEntityNotFoundException extends HttpBadRequestException {
const HttpEntityNotFoundException({required String? message})
: super(message: message);
const HttpEntityNotFoundException({
super.message,
});
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:toiki/exceptions/http_bad_request_exception.dart';

class HttpMissingAuthorizationException extends HttpBadRequestException {
const HttpMissingAuthorizationException({required String? message})
: super(message: message);
const HttpMissingAuthorizationException({
super.message,
});
}
2 changes: 1 addition & 1 deletion client/lib/repositories/conversion_repository.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:toiki/models/convert_url_response.dart';
import 'package:toiki/utls/api.dart';
import 'package:toiki/utils/api.dart';

class ConversionRepository {
ConversionRepository({required this.api});
Expand Down
6 changes: 4 additions & 2 deletions client/lib/screens/main_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:toiki/blocs/conversion/conversion_bloc.dart';
import 'package:toiki/blocs/conversion/conversion_event.dart';
import 'package:toiki/blocs/conversion/conversion_state.dart';
import 'package:toiki/utls/constants.dart';
import 'package:toiki/utils/constants.dart';
import 'package:url_launcher/url_launcher.dart';

class MainScreen extends StatelessWidget {
MainScreen({Key? key}) : super(key: key);
MainScreen({
super.key,
});

static const route = '/';

Expand Down
2 changes: 1 addition & 1 deletion client/lib/utls/api.dart → client/lib/utils/api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'package:http/http.dart' as http;
import 'package:toiki/exceptions/http_bad_request_exception.dart';
import 'package:toiki/exceptions/http_entity_not_found_exception.dart';
import 'package:toiki/exceptions/http_missing_authorization_exception.dart';
import 'package:toiki/utls/env.dart';
import 'package:toiki/utils/env.dart';

class Api {
final _client = http.Client();
Expand Down
File renamed without changes.
File renamed without changes.
Loading