Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
myhr-facescan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chokmongkhon Jansanom
myhr-facescan
Commits
56daecf1
Commit
56daecf1
authored
Mar 17, 2024
by
Chokmongkhon Jansanom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: env in example.
parent
2c303f0d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
5 deletions
+17
-5
.gitignore
example/.gitignore
+3
-0
env.dart
example/lib/env.dart
+9
-0
main.dart
example/lib/main.dart
+2
-5
pubspec.lock
example/pubspec.lock
+0
-0
pubspec.yaml
example/pubspec.yaml
+3
-0
No files found.
example/.gitignore
View file @
56daecf1
...
...
@@ -41,3 +41,6 @@ app.*.map.json
/android/app/debug
/android/app/profile
/android/app/release
*.env
env.g.dart
example/lib/env.dart
0 → 100644
View file @
56daecf1
import
'package:envied/envied.dart'
;
part
'env.g.dart'
;
@Envied
()
abstract
class
Env
{
@EnviedField
(
varName:
'LUXAND_LICENSE_KEY'
)
static
const
String
luxandLicenseKey
=
_Env
.
luxandLicenseKey
;
}
example/lib/main.dart
View file @
56daecf1
import
'package:flutter/material.dart'
;
import
'dart:async'
;
import
'package:flutter/services.dart'
;
import
'package:get/get.dart'
;
import
'package:myhr_facescan/enroll/index.dart'
;
import
'package:myhr_facescan
/myhr_facescan
.dart'
;
import
'package:myhr_facescan
_example/env
.dart'
;
void
main
(
)
{
runApp
(
const
MyApp
());
...
...
@@ -51,7 +48,7 @@ class EnrollPage extends StatelessWidget {
body:
const
SafeArea
(
child:
SingleChildScrollView
(
child:
EnrollFace
(
licenseKey:
''
,
licenseKey:
Env
.
luxandLicenseKey
,
),
)),
);
...
...
example/pubspec.lock
View file @
56daecf1
This diff is collapsed.
Click to expand it.
example/pubspec.yaml
View file @
56daecf1
...
...
@@ -18,6 +18,7 @@ dependencies:
sdk
:
flutter
get
:
envied
:
^0.5.3
myhr_facescan
:
# When depending on this package from a real application you should use:
# myhr_facescan: ^x.y.z
...
...
@@ -42,6 +43,8 @@ dev_dependencies:
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints
:
^3.0.0
envied_generator
:
0.5.3
build_runner
:
2.4.8
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment