Skip to content

Commit

Permalink
Merge pull request #93 from fanzru/staging
Browse files Browse the repository at this point in the history
Bump main release
  • Loading branch information
kaenova authored Jun 22, 2022
2 parents 11296dc + 4b6357c commit e9b4510
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 21 deletions.
40 changes: 21 additions & 19 deletions mobile/lib/screen/form_register/register_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,25 +66,27 @@ class RegisterScreenState extends State<RegisterScreen> {
@override
Widget build(BuildContext context) {
void _handleSubmit() async {
try {
showDialog(
context: context,
builder: (context) => const Center(
child: SizedBox(
height: 100,
width: 100,
child: CircularProgressIndicator(),
),
));
await registerUser(_namaController.text, _emailController.text,
_passwordController.text);
Navigator.pop(context);
Navigator.pushNamedAndRemoveUntil(
context, HomeScreen.routeName, (route) => false);
ShowSnackBar(context, "Akun ${_namaController.text} berhasil dibuat");
} catch (err) {
Navigator.pop(context);
ShowSnackBar(context, "$err");
if (_formKey.currentState!.validate()) {
try {
showDialog(
context: context,
builder: (context) => const Center(
child: SizedBox(
height: 100,
width: 100,
child: CircularProgressIndicator(),
),
));
await registerUser(_namaController.text, _emailController.text,
_passwordController.text);
Navigator.pop(context);
Navigator.pushNamedAndRemoveUntil(
context, HomeScreen.routeName, (route) => false);
ShowSnackBar(context, "Akun ${_namaController.text} berhasil dibuat");
} catch (err) {
Navigator.pop(context);
ShowSnackBar(context, "$err");
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion mobile/lib/screen/home/components/tikum/mytikum_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class MyTikumCard extends StatelessWidget {
fontWeight: FontWeight.bold,
),
),
Text(tikum.tempatTujuan)
Text(tikum.tempatKumpul)
],
),
const SizedBox(
Expand Down
2 changes: 1 addition & 1 deletion mobile/lib/screen/home/components/tikum/tikum_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class TikumCard extends StatelessWidget {
fontWeight: FontWeight.bold,
),
),
Text(tikum.tempatTujuan)
Text(tikum.tempatKumpul)
],
),
const SizedBox(
Expand Down

0 comments on commit e9b4510

Please sign in to comment.