lzhuor / flutter-debug-notes

📒Debug notes of Flutter Development 🐛

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flutter-cheatsheet

📒Debug notes of Flutter Development 🐛

Widgets

  1. Get the position of a Widget
RenderBox box = context.findRenderObject();
Position position = box.localToGlobal(Offset.zero)
double dx = position.dx;

Dart

1. final vs const

Anything that isn't known at compile time should be final over const.

Signing

1. iOS 13.1 Real Device Signing issue

Error:

Running new app on actual iOS (13.3.1) device crashes on startup: code signature invalid for "path/to/Flutter.framework/Flutter"

Ref: flutter/flutter#49504

Solution: It's caused by individual profile. Problem at Apple Dev end. Use Team Profile to sign now.

About

📒Debug notes of Flutter Development 🐛

License:MIT License