Skip to content

Commit

Permalink
fix: 20/12/2023 13:48
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomjerry12345 committed Dec 20, 2023
1 parent 8b3c586 commit 2fca8c3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
19 changes: 11 additions & 8 deletions lib/screens/scan/section/scan_peminjaman.dart
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ class _ScanPeminjamanState extends State<ScanPeminjaman> {
height: 100,
),
)),

DataCell(data["konfirmasi"]!
? ButtonElevatedWidget(
"Pengembalian",
Expand All @@ -197,14 +198,16 @@ class _ScanPeminjamanState extends State<ScanPeminjaman> {
onPengembalian(data);
},
)
: ButtonElevatedWidget(
"Konfirmasi",
backgroundColor: Colors.green,
fontSize: fontSizeDataCell,
onPressed: () {
onKonfirmasi(id);
},
)),
: data["type_peminjaman"] != "online"
? ButtonElevatedWidget(
"Konfirmasi",
backgroundColor: Colors.green,
fontSize: fontSizeDataCell,
onPressed: () {
onKonfirmasi(id);
},
)
: Container()),
DataCell(ButtonElevatedWidget(
"Perpanjangan",
backgroundColor: Colors.blue,
Expand Down
1 change: 0 additions & 1 deletion lib/services/FirebaseServices.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';

import '../model/ModelQuery.dart';
import '../utils/log_utils.dart';
Expand Down

0 comments on commit 2fca8c3

Please sign in to comment.