This commit is contained in:
Hillel Coren 2020-07-05 16:55:32 +03:00
parent cc17d52dd9
commit 37f00aed2a
9 changed files with 5 additions and 19 deletions

View File

@ -70,7 +70,7 @@ class _WebhookEditState extends State<WebhookEdit> {
Widget build(BuildContext context) {
final viewModel = widget.viewModel;
final localization = AppLocalization.of(context);
final webhook = viewModel.webhook;
//final webhook = viewModel.webhook;
return EditScaffold(
title: localization.editWebhook,

View File

@ -4,7 +4,6 @@ import 'package:flutter/material.dart';
import 'package:flutter_redux/flutter_redux.dart';
import 'package:invoiceninja_flutter/redux/app/app_actions.dart';
import 'package:invoiceninja_flutter/redux/ui/ui_actions.dart';
import 'package:invoiceninja_flutter/ui/webhook/webhook_screen.dart';
import 'package:invoiceninja_flutter/utils/platforms.dart';
import 'package:redux/redux.dart';
import 'package:invoiceninja_flutter/data/models/models.dart';

View File

@ -21,7 +21,6 @@ class _WebhookViewState extends State<WebhookView> {
@override
Widget build(BuildContext context) {
final viewModel = widget.viewModel;
final userCompany = viewModel.state.userCompany;
final webhook = viewModel.webhook;
return ViewScaffold(

View File

@ -1,10 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter_redux/flutter_redux.dart';
import 'package:invoiceninja_flutter/data/models/models.dart';
import 'package:invoiceninja_flutter/data/models/webhook_model.dart';
import 'package:invoiceninja_flutter/redux/app/app_state.dart';
import 'package:invoiceninja_flutter/ui/app/presenters/entity_presenter.dart';
import 'package:invoiceninja_flutter/utils/formatting.dart';
class WebhookPresenter extends EntityPresenter {
static List<String> getDefaultTableFields(UserCompanyEntity userCompany) {
@ -20,8 +16,8 @@ class WebhookPresenter extends EntityPresenter {
@override
Widget getField({String field, BuildContext context}) {
final state = StoreProvider.of<AppState>(context).state;
final webhook = entity as InvoiceEntity;
//final state = StoreProvider.of<AppState>(context).state;
//final webhook = entity as InvoiceEntity;
switch (field) {
}

View File

@ -31,7 +31,6 @@ class WebhookScreen extends StatelessWidget {
Widget build(BuildContext context) {
final store = StoreProvider.of<AppState>(context);
final state = store.state;
final company = state.company;
final userCompany = state.userCompany;
final localization = AppLocalization.of(context);
final listUIState = state.uiState.webhookUIState.listUIState;

View File

@ -4,7 +4,6 @@ import 'package:flutter/material.dart';
import 'package:flutter_redux/flutter_redux.dart';
import 'package:invoiceninja_flutter/redux/app/app_actions.dart';
import 'package:invoiceninja_flutter/redux/ui/ui_actions.dart';
import 'package:invoiceninja_flutter/ui/stub/stub_screen.dart';
import 'package:invoiceninja_flutter/utils/platforms.dart';
import 'package:redux/redux.dart';
import 'package:invoiceninja_flutter/data/models/models.dart';

View File

@ -1,10 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter_redux/flutter_redux.dart';
import 'package:invoiceninja_flutter/data/models/models.dart';
import 'package:invoiceninja_flutter/data/models/stub_model.dart';
import 'package:invoiceninja_flutter/redux/app/app_state.dart';
import 'package:invoiceninja_flutter/ui/app/presenters/entity_presenter.dart';
import 'package:invoiceninja_flutter/utils/formatting.dart';
class StubPresenter extends EntityPresenter {
@ -23,8 +19,8 @@ class StubPresenter extends EntityPresenter {
@override
Widget getField({String field, BuildContext context}) {
final state = StoreProvider.of<AppState>(context).state;
final stub = entity as InvoiceEntity;
//final state = StoreProvider.of<AppState>(context).state;
//final stub = entity as InvoiceEntity;
switch (field) {
}

View File

@ -31,7 +31,6 @@ class StubScreen extends StatelessWidget {
Widget build(BuildContext context) {
final store = StoreProvider.of<AppState>(context);
final state = store.state;
final company = state.company;
final userCompany = state.userCompany;
final localization = AppLocalization.of(context);
final listUIState = state.uiState.stubUIState.listUIState;

View File

@ -22,7 +22,6 @@ class _StubViewState extends State<StubView> {
@override
Widget build(BuildContext context) {
final viewModel = widget.viewModel;
final userCompany = viewModel.state.userCompany;
final stub = viewModel.stub;
return ViewScaffold(