Skip to content

Commit

Permalink
Prevents date from resetting back to current date
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Tyler authored and Nick Tyler committed Sep 17, 2021
1 parent 40e4a5f commit 0623b7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
MARKETING_VERSION = 1.0.2;
MARKETING_VERSION = 1.0.4;
PRODUCT_BUNDLE_IDENTIFIER = com.nicktylah.gnucashMobile;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
Expand Down Expand Up @@ -508,7 +508,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
MARKETING_VERSION = 1.0.2;
MARKETING_VERSION = 1.0.4;
PRODUCT_BUNDLE_IDENTIFIER = com.nicktylah.gnucashMobile;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
Expand Down Expand Up @@ -540,7 +540,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
MARKETING_VERSION = 1.0.2;
MARKETING_VERSION = 1.0.4;
PRODUCT_BUNDLE_IDENTIFIER = com.nicktylah.gnucashMobile;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/transaction_form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class _TransactionFormState extends State<TransactionForm> {
@override
void initState() {
super.initState();
_dateInputController.text = DateFormat.yMd().format(DateTime.now());
}

final _key = GlobalKey<FormState>();
Expand All @@ -28,7 +29,6 @@ class _TransactionFormState extends State<TransactionForm> {

@override
Widget build(BuildContext context) {
_dateInputController.text = DateFormat.yMd().format(DateTime.now());
final _node = FocusScope.of(context);

return Consumer<AccountsModel>(builder: (context, accounts, child) {
Expand Down

0 comments on commit 0623b7f

Please sign in to comment.