Skip to content

Commit

Permalink
feat: Remove nft and coins for discover for altme #2940
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Oct 10, 2024
1 parent 081622f commit ce2ad0d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
18 changes: 10 additions & 8 deletions lib/dashboard/discover/view/discover_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,16 @@ class _DiscoverPageState extends State<DiscoverPage> {
Widget build(BuildContext context) {
return BasePage(
scrollView: false,
padding: Parameters.walletHandlesCrypto
? EdgeInsets.zero
: const EdgeInsets.fromLTRB(
Sizes.spaceSmall,
Sizes.spaceSmall,
Sizes.spaceSmall,
0,
),
padding:
// Parameters.walletHandlesCrypto
// ? EdgeInsets.zero
// :
const EdgeInsets.fromLTRB(
Sizes.spaceSmall,
Sizes.spaceSmall,
Sizes.spaceSmall,
0,
),
backgroundColor: Colors.transparent,
body: BlocListener<ProfileCubit, ProfileState>(
listenWhen: (previous, current) {
Expand Down
1 change: 0 additions & 1 deletion lib/dashboard/discover/view/discover_tab_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import 'package:altme/dashboard/dashboard.dart';
import 'package:altme/l10n/l10n.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:webview_flutter/webview_flutter.dart';

class DiscoverTabPage extends StatelessWidget {
const DiscoverTabPage({super.key});
Expand Down
8 changes: 4 additions & 4 deletions lib/dashboard/src/view/dashboard_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,10 @@ class _DashboardViewState extends State<DashboardView> {
physics: const NeverScrollableScrollPhysics(),
children: [
const HomePage(),
if (Parameters.walletHandlesCrypto)
const DiscoverTabPage()
else
const DiscoverPage(),
// if (Parameters.walletHandlesCrypto)
// const DiscoverTabPage()
// else
const DiscoverPage(),
if (Parameters.walletHandlesCrypto)
const WertPage()
else
Expand Down

0 comments on commit ce2ad0d

Please sign in to comment.