Skip to content

Commit

Permalink
Merge pull request MCarlomagno#33 from developerjamiu/typo-fix
Browse files Browse the repository at this point in the history
fix: correct typo in database service and remove unused imports
  • Loading branch information
MCarlomagno authored Jan 19, 2022
2 parents 0bd39bd + 59fe6e5 commit 6086af2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 17 deletions.
5 changes: 2 additions & 3 deletions lib/pages/db/database.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ import 'package:path_provider/path_provider.dart';

class DataBaseService {
// singleton boilerplate
static final DataBaseService _cameraServiceService =
DataBaseService._internal();
static final DataBaseService _databaseService = DataBaseService._internal();

factory DataBaseService() {
return _cameraServiceService;
return _databaseService;
}
// singleton boilerplate
DataBaseService._internal();
Expand Down
2 changes: 0 additions & 2 deletions lib/pages/profile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:url_launcher/url_launcher.dart';
import 'home.dart';
import 'dart:math' as math;

class Profile extends StatelessWidget {
const Profile(this.username, {Key key, this.imagePath}) : super(key: key);
Expand All @@ -21,7 +20,6 @@ class Profile extends StatelessWidget {

@override
Widget build(BuildContext context) {
final double mirror = math.pi;
return Scaffold(
backgroundColor: Color(0XFFC7FFBE),
body: SafeArea(
Expand Down
2 changes: 0 additions & 2 deletions lib/pages/widgets/FacePainter.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import 'dart:ui';
import 'package:google_ml_kit/google_ml_kit.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

class FacePainter extends CustomPainter {
Expand Down
2 changes: 0 additions & 2 deletions lib/pages/widgets/auth-action-button.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'dart:io';

import 'package:face_net_authentication/pages/db/database.dart';
import 'package:face_net_authentication/pages/models/user.model.dart';
import 'package:face_net_authentication/pages/profile.dart';
Expand Down
16 changes: 8 additions & 8 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.6.1"
version: "2.8.2"
boolean_selector:
dependency: transitive
description:
Expand Down Expand Up @@ -42,14 +42,14 @@ packages:
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "1.2.0"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
version: "1.3.1"
clock:
dependency: transitive
description:
Expand Down Expand Up @@ -155,14 +155,14 @@ packages:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.10"
version: "0.12.11"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
version: "1.7.0"
path:
dependency: "direct main"
description:
Expand Down Expand Up @@ -300,7 +300,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.0"
version: "0.4.3"
tflite_flutter:
dependency: "direct main"
description:
Expand Down Expand Up @@ -363,7 +363,7 @@ packages:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.1.1"
win32:
dependency: transitive
description:
Expand All @@ -386,5 +386,5 @@ packages:
source: hosted
version: "5.1.1"
sdks:
dart: ">=2.13.0 <3.0.0"
dart: ">=2.14.0 <3.0.0"
flutter: ">=1.26.0-17.6.pre"

0 comments on commit 6086af2

Please sign in to comment.