Most screenshot is youtube link
Flutter | SwiftUI |
---|---|
Padding | .padding |
SizedBox | .frame |
Align | .frame |
Positioned | .offset |
(Widget property) | .foregroundColor |
Container color | .background |
Container decoration | .border |
Column | VStack |
Row | HStack |
Stack | ZStack/.overlay() |
Switch | Toggle |
Slider | Slider |
DropdownButton | Stepper |
Positioned | .contextMenu |
ExpansionTile | DisclosureGroup |
Divider | Divider |
VerticalDivider | X |
Spacer | Spacer |
ProgressView(菊花) | CircularProgressIndicator |
ProgressView(進度條) | LinearProgressIndicator |
Card | X |
GeometryReader | LayoutBuilder |
UIScreen | MediaQuery |
EmptyView | Container without child |
UIKit | Flutter | SwiftUI |
---|---|---|
UITapGestureRecognizer | GestureDetector | .onTapGesture |
UIScrollView | SingleChildScrollView | ScrollView |
openUrl | url_launcher | Link |
UINavigationController | Navigator | NavigationView |
present | modal_bottom_sheet | .sheet |
present modalPresentationStyle = .fullScreen | CupertinoPageRoute fullscreenDialog | .fullScreenCover |
Android | UIKit | Flutter | SwiftUI |
---|---|---|---|
TextView | UILabel | Text | |
Button | UIButton | RawMaterialButton | Button |
EditText | UITextField | TextField | TextField |
EditText | UITextView | TextField | TextEditor |
Dialog | UIAlertController | AlertDialog | Alert |
ListView | UITableView static cell | ListView use children | List with content |
RecycleView | UITableView dynamic cell | ListView.builder | List with data |
RecycleView(set GridLayoutManager) | UICollectionView | GridView | LazyVGrid & LazyHGrid |
BottomNavigationView | UITabBarController | BottomNavigationBar | TabView |
TabbedActivity | UIPageViewController | TabController | TabView.tabViewStyle(.page) |
WillEnterForeground | onRestart | ||
DidBecomeActive | onStart | resumed | active |
WillResignActive | onPause | inactive | |
DidEnterBackground | onStop | paused | background |
init | onCreate | createState | init |
viewDidLoad | initState | ||
viewWillAppear | onStart | .onAppear() | |
viewDidLayoutSubviews | build | body | |
viewDidAppear | onResume | ||
viewWillDisappear | onPause | ||
viewDidDisappear | onStop | .onDisappear() | |
removeFromSuperview | deactivate | ||
deinit | onDestroy | dispose | |
UserDefault | SharedPreferences | SharedPreferences | AppStorage |
Android | UIKit | Flutter(Material) | Flutter(Cupertino) | SwiftUI |
---|---|---|---|---|
Spinner | UIPickerView | showBottomSheet | CupertinoActionSheet | Picker |
DatePickerDialog | UIDatePicker | showDatePicker/showTimePicker | CupertinoDatePicker | DatePicker |