-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from technogise/release.0.0.2
Release.0.0.2
- Loading branch information
Showing
32 changed files
with
410 additions
and
324 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
## [0.0.1] - TODO: Add release date. | ||
## [0.0.2] - 30 March 2020. | ||
|
||
* TODO: Describe initial release. | ||
- This is alpha version of the library. The API are subjected to changed |
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 |
---|---|---|
@@ -1,25 +1,26 @@ | ||
import 'package:formbuilder/helpers/database.dart'; | ||
import 'package:formbuilder/helpers/data_storage.dart'; | ||
import 'package:formbuilder/redux/models/store_view_model.dart'; | ||
import 'package:flow_form/helpers/data_storage.dart'; | ||
import 'package:flow_form/helpers/database.dart'; | ||
import 'package:hive/hive.dart'; | ||
|
||
class DatabaseImpl implements Database { | ||
///Function to save data | ||
void saveData({StoreViewModel viewModel, dynamic answer}) { | ||
DataStorage.saveData(viewModel: viewModel, answer: answer); | ||
var dataKey = viewModel.currentNode.dataKey; | ||
void saveData({String dataKey, dynamic answer}) { | ||
DataStorage.saveData( | ||
dataKey: dataKey, | ||
answer: answer, | ||
); | ||
var box = Hive.box('DataBox'); | ||
box.put(dataKey, answer); | ||
} | ||
|
||
|
||
///Function to upload image to fireBase | ||
void uploadImage() { | ||
} | ||
void uploadImage() {} | ||
|
||
String getData(String dataKey){ | ||
String getData(String dataKey) { | ||
var box = Hive.box('DataBox'); | ||
String data = box.get(dataKey); | ||
DataStorage.updateData(dataKey, data); | ||
return data; | ||
} | ||
} | ||
} |
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
Oops, something went wrong.