Skip to content

Commit

Permalink
tabs/dashboard: remove show raw toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
octobocto authored and torkelrogstad committed Nov 4, 2023
1 parent 358e0e2 commit 1e2bf1b
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions lib/pages/tabs/dashboard_tab_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ class DashboardTabPage extends StatelessWidget {
DashboardGroup(
title: 'Transactions',
widgetTrailing: SailText.secondary13(viewModel.transactions.length.toString()),
endWidget:
SailToggle(label: 'Show raw', value: viewModel.showRaw, onChanged: viewModel.toggleRaw),
children: [
SailColumn(
spacing: 0,
Expand All @@ -102,7 +100,6 @@ class DashboardTabPage extends StatelessWidget {
children: [
for (final tx in viewModel.transactions)
TxView(
showRAW: viewModel.showRaw,
tx: tx,
),
],
Expand Down Expand Up @@ -162,10 +159,9 @@ class DashboardNodeConnection extends ViewModelWidget<HomePageViewModel> {
}

class TxView extends StatefulWidget {
final bool showRAW;
final Transaction tx;

const TxView({super.key, required this.showRAW, required this.tx});
const TxView({super.key, required this.tx});

@override
State<TxView> createState() => _TxViewState();
Expand Down Expand Up @@ -314,8 +310,6 @@ class HomePageViewModel extends BaseViewModel {

List<Transaction> get transactions => _transactionsProvider.transactions;

bool showRaw = false;

HomePageViewModel() {
// by adding a listener, we subscribe to changes to the balance
// provider. We don't use the updates for anything other than
Expand All @@ -327,11 +321,6 @@ class HomePageViewModel extends BaseViewModel {
_mainRPC.addListener(notifyListeners);
}

void toggleRaw(bool value) {
showRaw = value;
notifyListeners();
}

void pegOut(BuildContext context) async {
final theme = SailTheme.of(context);

Expand Down

0 comments on commit 1e2bf1b

Please sign in to comment.