Code Monkey home page Code Monkey logo

kalshiflutterintegration's Introduction

Demos

Page 1 page 2 Page 3 Page 4 Page 4

How to run the project

  1. go to flutter main project fold and build flutter pages for iOS. From the CLI, run:
cd kalshi_flutter
flutter pub get
  1. go to flutterIntegration main project folder and install necessary dependencies. From the CLI, run:
cd ../
pod install
  1. open KalshiFlutterIntegration.xcworkspace, select the appropriate iOS simulator and run

The overall VC tree

                                        Application
                                            |
                                    KSRootTabBarController
                                            |
        -----------------------------------------------------------------------
        |                      |                      |                       |
KSDrawerViewController  presentingContainer  UINavigationController  UINavigationController
                               |                      |                       | 
                    KSModalFlutterViewController  KSTabHomeViewController  KSTabFlutterViewController

The responsibilities of each VC

  1. KSRootTabBarController is the central hub of the application:

    • open / close left drawer
    • present / dismiss model flutterVC
    • container for KSTabHomeViewController and KSTabFlutterViewController
  2. KSDrawerViewController is the left drawer

    • it communicates to KSRootTabBarController with KSDrawerViewControllerListener to open/close modelFlutterViewController and close itself
  3. presentingContainer is just a transparent VC and pass touch event down to parent

    • it is responsible to present the full screen modal flutter vc
  4. KSModalFlutterViewController is the full screen presented modal flutter vc

    • it communicates to KSRootTabBarController with KSModalFlutterViewControllerListener to open left drawer and close itself
    • it also communicates to Flutter client with MethodChannel
  5. KSTabHomeViewController is the content VC of first tab

    • it communicates to KSRootTabBarController with KSTabHomeViewControllerListener to open drawer and present full screen modal flutter vc
  6. KSTabFlutterViewController is the cotent VC of second tab

    • it communicates to KSRootTabBarController with KSTabFlutterViewControllerListener to open left drawer

kalshiflutterintegration's People

Watchers

Andrew avatar

Forkers

marcglasberg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.