- go to flutter main project fold and build flutter pages for iOS. From the CLI, run:
cd kalshi_flutter
flutter pub get
- go to flutterIntegration main project folder and install necessary dependencies. From the CLI, run:
cd ../
pod install
- open
KalshiFlutterIntegration.xcworkspace
, select the appropriate iOS simulator and run
Application
|
KSRootTabBarController
|
-----------------------------------------------------------------------
| | | |
KSDrawerViewController presentingContainer UINavigationController UINavigationController
| | |
KSModalFlutterViewController KSTabHomeViewController KSTabFlutterViewController
-
KSRootTabBarController
is the central hub of the application:- open / close left drawer
- present / dismiss model flutterVC
- container for
KSTabHomeViewController
andKSTabFlutterViewController
-
KSDrawerViewController
is the left drawer- it communicates to
KSRootTabBarController
withKSDrawerViewControllerListener
to open/close modelFlutterViewController and close itself
- it communicates to
-
presentingContainer is just a transparent VC and pass touch event down to parent
- it is responsible to present the full screen modal flutter vc
-
KSModalFlutterViewController
is the full screen presented modal flutter vc- it communicates to
KSRootTabBarController
withKSModalFlutterViewControllerListener
to open left drawer and close itself - it also communicates to Flutter client with
MethodChannel
- it communicates to
-
KSTabHomeViewController
is the content VC of first tab- it communicates to
KSRootTabBarController
withKSTabHomeViewControllerListener
to open drawer and present full screen modal flutter vc
- it communicates to
-
KSTabFlutterViewController
is the cotent VC of second tab- it communicates to
KSRootTabBarController
withKSTabFlutterViewControllerListener
to open left drawer
- it communicates to