Skip to content

Commit

Permalink
feat: improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
fleetimee committed Jan 5, 2023
1 parent 97ce8ef commit 412116f
Show file tree
Hide file tree
Showing 6 changed files with 340 additions and 265 deletions.
1 change: 1 addition & 0 deletions assets/images/home/empty.json

Large diffs are not rendered by default.

Binary file added assets/images/home/empty.zip
Binary file not shown.
10 changes: 9 additions & 1 deletion lib/app/modules/gate/views/gate_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,15 @@ class GateView extends GetView<GateController> {
),
),
listItemTextColor: Colors.white,
onTap: () {},
onTap: () async {
// Initialize the shared preferences
final prefs =
await SharedPreferences.getInstance();

await prefs.setString('role', 'pengutus');

Get.offAllNamed(Routes.HOME_PENGUTUS);
},
),
)
: Container(),
Expand Down
4 changes: 4 additions & 0 deletions lib/app/modules/home/controllers/home_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ class HomeController extends GetxController {
getMyDebiturInput(sort);
}

Future<void> refreshPengajuan() async {
getMySubmission();
}

// Initialize firebase auth
FirebaseAuth auth = FirebaseAuth.instance;

Expand Down
Loading

0 comments on commit 412116f

Please sign in to comment.