英文:
Does DatePicker in flutter uses native android widget or its a custom widget in Flutter
问题
When working on a Flutter project that involved handling dates, I noticed that the DatePicker widget looked very similar to the native Android date picker.
I'm curious to know whether DatePicker is a custom implementation in Flutter or if it uses a method to invoke the native Android date picker.
英文:
When working on a Flutter project that involved handling dates, I noticed that the DatePicker widget looked very similar to the native Android date picker.
I'm curious to know whether DatePicker is a custom implementation in Flutter or if it uses a method to invoke the native Android date picker.
In Flutter:
In Native Android:
答案1
得分: 1
这是自定义实现。我找不到对以下内容的任何使用:
- PlatformViewLink(混合式组合)
- AndroidView(虚拟显示)
在 date_picker.dart 和 calendar_date_picker.dart 文件中可以看到它们是如何实现的。
英文:
It's a custom implementation. I couldn't find any use of
- PlatformViewLink (Hybrid composition)
- AndroidView (Virtual display)
in the date_picker.dart and calendar_date_picker.dart
You can see in the files how it is implemented.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论