Trace:
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
flutterui:custom_screen [2020/08/06 22:53] admin |
flutterui:custom_screen [2020/08/06 22:54] admin |
||
---|---|---|---|
Line 55: | Line 55: | ||
- A screen which is available on the server | - A screen which is available on the server | ||
- | In this tutorial we will cover both use-cases. Let's start with a custom screen thats not available on the server. For this we have to extend an already existing class: **CustomScreen**. | + | In this tutorial we'll cover both use-cases. Let's start with a custom screen thats not available on the server. For this we have to extend an already existing class: **CustomScreen**. |
<file dart> | <file dart> | ||
Line 129: | Line 129: | ||
We also override the **update** function to update our components when we get new data from the server. The **withServer** function now tells our screen to communicate with the server. | We also override the **update** function to update our components when we get new data from the server. The **withServer** function now tells our screen to communicate with the server. | ||
- | An example screen can be found [[https://github.com/sibvisions/flutterclient.example/blob/master/lib/screens/contact_custom_screen.dart|here]]. And an example CustomScreenManager [[https://github.com/sibvisions/flutterclient.example/blob/master/lib/example_custom_screen_manager.dart|here]]. | + | An example screen can be found [[https://github.com/sibvisions/flutterclient.example/blob/master/lib/screens/contact_custom_screen.dart|here]] and an example custom screen manager [[https://github.com/sibvisions/flutterclient.example/blob/master/lib/example_custom_screen_manager.dart|here]]. |