Trong thiết kế giao diện Flutter đôi khi chúng ta bắt gặp loại view dạng góc vát như ảnh hướng đây, bạn có thể tưởng tượng giống như chiếc SIM điện thoại có góc vát ở một góc (tránh nhầm lẫn với bo góc tròn đều radius trong container). …
Xem chi tiết »Lập trình
Share image files with other apps (Android programming)
We will develop a feature for sharing images to another application (such as Telegram and Facebook). The instructions will be provided in the Java programming language for Android. Method 1: Use base64 image string: private void shareImageBase64(Context context, String base64Image) { try { // Decode the Base64 string into a …
Xem chi tiết »Nhận biết app Flutter ở chế độ background hay foreground
How to detect a Flutter application running in background or foreground? In some cases you need to check if the app is running in the background or in the live state. If you use regular documents on Stackoverflow or use Flutter’s default API, the results will be incorrect. Normally you …
Xem chi tiết »Delay search when type textformfiled use CancelableOperation in Flutter
Đôi khi chúng ta làm các chức năng tìm kiếm không phải lúc nào chúng ta cũng gọi dữ liệu ngay lập tức. Nếu như thông thường trong hàm onChanged của Flutter bạn sẽ gọi API mỗi khi người dùng gõ ngay lập tức. Hành động gọi API liên tục …
Xem chi tiết »