-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6da3384
commit 6e07769
Showing
14 changed files
with
783 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import 'package:flutter/widgets.dart'; | ||
import 'package:get/get.dart'; | ||
|
||
import '/domain/model/my_user.dart'; | ||
import '/domain/service/balance.dart'; | ||
import '/domain/service/my_user.dart'; | ||
import '/ui/widget/text_field.dart'; | ||
|
||
class TransactionsController extends GetxController { | ||
TransactionsController(this._balanceService, this._myUserService); | ||
|
||
final RxBool expanded = RxBool(false); | ||
|
||
final RxBool includeHold = RxBool(true); | ||
final RxBool includeCompleted = RxBool(true); | ||
|
||
final GlobalKey filterKey = GlobalKey(); | ||
|
||
final TextFieldState search = TextFieldState(); | ||
|
||
final RxnString query = RxnString(); | ||
|
||
final RxSet<String> ids = RxSet(); | ||
|
||
final BalanceService _balanceService; | ||
final MyUserService _myUserService; | ||
|
||
RxList<Transaction> get transactions => _balanceService.transactions; | ||
Rx<MyUser?> get myUser => _myUserService.myUser; | ||
|
||
RxDouble get hold => _balanceService.hold; | ||
} |
Oops, something went wrong.