Fakultas Ilmu Komputer UI

Commit 4a44c8e5 authored by Tsamara Esperanti Erwin's avatar Tsamara Esperanti Erwin
Browse files

fix errors

parent e81b5c26
Pipeline #62654 failed with stages
in 6 minutes and 44 seconds
import 'dart:async';
import 'package:bloc/bloc.dart';
import 'package:dio/dio.dart';
import 'package:home_industry/Pages/ProductPayment/repositories/payment_repository.dart';
import 'package:home_industry/Pages/Transactions/repositories/transaction_repository.dart';
import 'package:home_industry/State/ChangeBottomNavigatonBar/change_bottom_navigation_bar_bloc.dart';
......@@ -38,7 +39,7 @@ class PaymentBloc extends Bloc<PaymentEvent, PaymentState> {
event.image, event.bankName, event.bankIdDestination);
yield const UploadProofSuccess();
_changeBottomNavigationBarBloc.add(const TransactionOccur());
} catch (_) {
} on DioError catch (_) {
yield const UploadProofError();
}
}
......
......@@ -715,12 +715,7 @@ class _ItemCart extends StatelessWidget {
text: item.productName,
style: Theme.of(context).textTheme.headline6.copyWith(
fontSize: 18, color: Theme.of(context).primaryColor),
children: <TextSpan>[
if (item.productPreorder)
TextSpan(
text: ' - preorder',
style: Theme.of(context).textTheme.subtitle1)
])),
)),
trailing: PriceTextFormatter(
price: '${item.quantity * double.parse(item.productPrice)}',
style: const TextStyle(
......
......@@ -52,6 +52,7 @@ class HomeIndustryApp extends StatelessWidget {
)
],
child: MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Industri Pilar',
builder: (BuildContext context, Widget child) => Material(
child: FlutterEasyLoading(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment