dio 数据请求 1. 添加依赖 2. 炒鸡简单的使用方式 get 请求 post 请求 dio 数据请求 注意:Flutter 官方提供了 HttpClient 发起的请求,但 HttpClient 本身功能较弱,很多常用功能都不支持。 所以,官方建议使用 dio 来发起网络请求,它是一个强大易用的 dart http 请求库,支持...
Pub Package Registry Requirements Configuring the package registry Publish a package Install a package Pub Package Registry Publish Pub packages for your user or organizati...
Directions 1. Create a StatefulWidget with default properties 2. Build an AnimatedContainer using the properties 3. Start the animation by rebuilding with new properties Comple...
Routing 1: Pages on the Fly 1. Create a Dog Detail Page: 2. Add the Routing mechanism: Routing 1: Pages on the Fly There are a couple different ways to add more pages to your...
Focus a text field as soon as it’s visible Focus a text field when a button is tapped Directions 1. Create a FocusNode 2. Pass the FocusNode to a TextField 3. Focus the TextFie...