• Make Android push from right to left like iOS


    image.png

  • Download images using a placeholder map

FadeInImage.assetNetwork(
              placeholder: "images/ic_device_image_default.png",
              image: imagePath,
              fit: BoxFit.cover,
 ),
Copy the code
  • Coordinate transformations just want to get the position of the gesture in the current component
//1. Coordinate conversion set key
  GlobalKey indexBarKey = GlobalKey();
//2. Set the key in the component that needs the location. This component must be wrapped with the gesture
  key:indexBarKey ,
//3. Get coordinates in gesture method
  onVerticalDragDown: (DragDownDetails details){
        RenderBox getBox = indexBarKey.currentContext.findRenderObject();
        Offset local = getBox.globalToLocal(details.globalPosition);
        print(local);
  },
Copy the code
  • Set the battery bar color
appBar: AppBar(
    title: Text('123'),
    brightness: Brightness.dark,
),Copy the code

Xiaobian this, to recommend you an excellent iOS communication platform, platform partners are very excellent iOS developers, we focus on the sharing of technology and skills exchange, we can discuss technology on the platform, exchange and learning. Welcome to join (if you want to enter, you can add xiaobian wechat).


Wechat account: 17336563535

Source: this article is reproduced by the third party, if there is infringement, please contact xiaobian to delete.