comment some widgets
This commit is contained in:
@@ -186,8 +186,6 @@ class _ActivityScreenState extends ConsumerState<ActivityScreen> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
final walletId = viewState.selectedTab!.walletId;
|
|
||||||
final balanceAsync = ref.watch(walletBalanceProvider(walletId));
|
|
||||||
final currentTransactions = viewState.transactionPages[viewState.currentPage];
|
final currentTransactions = viewState.transactionPages[viewState.currentPage];
|
||||||
|
|
||||||
return RefreshIndicator(
|
return RefreshIndicator(
|
||||||
@@ -197,19 +195,22 @@ class _ActivityScreenState extends ConsumerState<ActivityScreen> {
|
|||||||
physics: const AlwaysScrollableScrollPhysics(),
|
physics: const AlwaysScrollableScrollPhysics(),
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 24),
|
padding: const EdgeInsets.symmetric(horizontal: 24),
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
// TODO: WalletBalanceBlock temporarily hidden
|
||||||
padding: const EdgeInsets.only(bottom: 16),
|
// final walletId = viewState.selectedTab!.walletId;
|
||||||
child: balanceAsync.when(
|
// final balanceAsync = ref.watch(walletBalanceProvider(walletId));
|
||||||
loading: () =>
|
// Padding(
|
||||||
const Center(child: AppLoadingIndicator(size: 48)),
|
// padding: const EdgeInsets.only(bottom: 16),
|
||||||
error: (_, __) => const SizedBox.shrink(),
|
// child: balanceAsync.when(
|
||||||
data: (balance) => WalletBalanceBlock(
|
// loading: () =>
|
||||||
availableBalance: balance.availableBalance,
|
// const Center(child: AppLoadingIndicator(size: 48)),
|
||||||
allocatedBalance: balance.allocatedBalance,
|
// error: (_, __) => const SizedBox.shrink(),
|
||||||
totalBalance: balance.totalBalance,
|
// data: (balance) => WalletBalanceBlock(
|
||||||
),
|
// availableBalance: balance.availableBalance,
|
||||||
),
|
// allocatedBalance: balance.allocatedBalance,
|
||||||
),
|
// totalBalance: balance.totalBalance,
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
...currentTransactions.map(
|
...currentTransactions.map(
|
||||||
(tx) => Padding(
|
(tx) => Padding(
|
||||||
padding: const EdgeInsets.only(bottom: 12),
|
padding: const EdgeInsets.only(bottom: 12),
|
||||||
|
|||||||
@@ -37,9 +37,8 @@ class HomeScreen extends ConsumerWidget {
|
|||||||
margin: EdgeInsets.all(30),
|
margin: EdgeInsets.all(30),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Row(
|
Align(
|
||||||
children: [
|
alignment: Alignment.centerLeft,
|
||||||
Expanded(
|
|
||||||
child: Text.rich(
|
child: Text.rich(
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: context.translate(I18n.homeGreeting),
|
text: context.translate(I18n.homeGreeting),
|
||||||
@@ -53,17 +52,6 @@ class HomeScreen extends ConsumerWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
IconButton(
|
|
||||||
onPressed: () =>
|
|
||||||
navigationContract.pushTo(AppRoutes.deviceSetup),
|
|
||||||
icon: Icon(
|
|
||||||
Icons.person_add_outlined,
|
|
||||||
color: theme.getColorFor(ThemeCode.textPrimary),
|
|
||||||
),
|
|
||||||
tooltip: context.translate(I18n.homeAddAnotherKid),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
const ChildWalletsSlider(),
|
const ChildWalletsSlider(),
|
||||||
Align(
|
Align(
|
||||||
alignment: Alignment.topLeft,
|
alignment: Alignment.topLeft,
|
||||||
|
|||||||
Reference in New Issue
Block a user