Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hareesh-Nandigrama committed Mar 15, 2023
1 parent f3789d9 commit c14f119
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion lib/pages/elections/register_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:fluentui_system_icons/fluentui_system_icons.dart';
import 'package:flutter/material.dart';
import 'package:onestop_dev/functions/utility/show_snackbar.dart';
import 'package:onestop_dev/pages/elections/voter_card.dart';
import 'package:onestop_dev/widgets/ui/list_shimmer.dart';

import '../../globals/my_colors.dart';
import '../../globals/my_fonts.dart';
Expand Down Expand Up @@ -94,7 +95,10 @@ class _RegisterScreenState extends State<RegisterScreen> {
future: dio.get("https://swc.iitg.ac.in/elections_api/sgc/profile"),
builder: (context, snapshot) {
if (!snapshot.hasData) {
return CircularProgressIndicator();
return ListShimmer(
count: 1,
height: 750,
);
}
Response profResp = snapshot.data!;
if (profResp.data["euser"]["registration_complete"] == false) {
Expand Down
5 changes: 3 additions & 2 deletions lib/pages/elections/voter_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ class _VoterCardState extends State<VoterCard> {
"Mdes": "Mdes",
"Dual Degree": "Dual",
"MA": "MA",
"MSR": "MSR"
"MSR": "MSR",
"Others": "Others"
};

String getBranch(String input)
Expand Down Expand Up @@ -91,7 +92,7 @@ class _VoterCardState extends State<VoterCard> {
if(!snapshot.hasData){
return Center(child: ListShimmer(
count: 1,
height: 550,
height: 750,
));
}
//print(snapshot.data!);
Expand Down

0 comments on commit c14f119

Please sign in to comment.