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

fix : fix wrong calculation for late time in presence list (for stake… #18

Merged
merged 1 commit into from
Jan 11, 2021
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
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ android {
applicationId "com.banuacoders.siap"
minSdkVersion 24
targetSdkVersion 30
versionCode 34
versionName '4.2.4'
versionCode 35
versionName '4.2.5'
}

signingConfigs {
Expand Down
2 changes: 1 addition & 1 deletion lib/screen/login_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ class _LoginScreenState extends State<LoginScreen> {
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(
'v4.2.4',
'v4.2.5',
style: TextStyle(
color: Colors.grey,
fontSize: 12.0,
Expand Down
5 changes: 2 additions & 3 deletions lib/screen/presence_list_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,8 @@ class _PresenceListScreenState extends State<PresenceListScreen> {
children: employee.presences.map((presence) {
String status = presence.status;
if (presence.status == 'Terlambat') {
var duration = calculateLateInMinutes(
presence.startTime.add(Duration(minutes: 30)),
presence.attendTime);
var duration =
calculateLateInMinutes(presence.startTime, presence.attendTime);
status += ' $duration';
}
return Container(
Expand Down
2 changes: 1 addition & 1 deletion lib/screen/splash_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class _SplashScreenState extends State<SplashScreen> {
color: Colors.white,
fontWeight: FontWeight.w700)),
const SizedBox(width: 2.0),
Text('v4.2.4', style: TextStyle(color: Colors.white)),
Text('v4.2.5', style: TextStyle(color: Colors.white)),
const Spacer()
],
),
Expand Down