Chapter 6: Data Binding and Storage
In the previous chapter, we learned that widgets can be controlled manually by application code. As we start looking at more complex applications, it's common for developers to want to display or manipulate a dynamic data source. The Fyne toolkit provides data and storage APIs that automate a lot of this work.
In this chapter, we're going to explore the ways that data is handled within the Fyne toolkit. We will cover the following topics:
- Binding data to widgets
- Adapting data types for display
- Binding complex data types
- Storing data using the Preferences API
By the end of the chapter, we will know how to make use of the data binding and storage APIs to create an app that helps track water consumption. It will store information on the local device and use APIs to explore how to minimize the coding required to manage data.