-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.4.0 #11
Conversation
Codecov Report
@@ Coverage Diff @@
## master #11 +/- ##
==========================================
+ Coverage 93.37% 94.95% +1.57%
==========================================
Files 29 30 +1
Lines 906 1011 +105
==========================================
+ Hits 846 960 +114
+ Misses 60 51 -9
Continue to review full report at Codecov.
|
@@ -40,7 +40,7 @@ class IceCreamPage extends StatefulWidget { | |||
} | |||
|
|||
class _IceCreamPageState extends State<IceCreamPage> { | |||
var box = Hive['myBox']; | |||
var box = Hive.box('myBox'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey, could you just help me understanding this?
i think here it should be Hive.openBox
just like in the other files.
If not, what is different here that it doesn't need to usar de openBox
method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are correct, in the _openBox()
method, Hive.openBox()
should be called.
Once a box has been opened, it can be accessed without a Future using Hive.box()
.
This pull request ist WIP and I'll update the documentation to explain the difference in detail...
No description provided.