OpenKrown App

Welcome to my OpenKrown App for android and iOS.

The main ui was built with dart and flutter UI sdk from Google, then I want to keep my code clean through android sdk, kotlin and iOS objc code not swift.


The connectivity between the App will have firebase on the top notch php with firebase sdk for web.

You will need to learn dart from here:

https://pub.dartlang.org/flutter

After learning and create a flutter App.

You can copy this bsd license code inside into lib/main.dart as an example.

import 'package:flutter/material.dart';

void main() {
  runApp(TabBarDemo());
}

class TabBarDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: DefaultTabController(
        length: 3,
        child: Scaffold(
          appBar: AppBar(
            bottom: TabBar(
              tabs: [
                Tab(icon: Icon(Icons.directions_car)),
                Tab(icon: Icon(Icons.directions_transit)),
                Tab(icon: Icon(Icons.directions_bike)),
              ],
            ),
            title: Text('Tabs Demo'),
          ),
          body: TabBarView(
            children: [
              Icon(Icons.directions_car),
              Icon(Icons.directions_transit),
              Icon(Icons.directions_bike),
            ],
          ),
        ),
      ),
    );
  }
}

For the javascript code you will need to do this as it follows:

<script src="https://www.gstatic.com/firebasejs/5.5.7/firebase.js"></script>
<script>
  // Initialize Firebase
  // TODO: Replace with your project's customized code snippet
  var config = {
    apiKey: "<API_KEY>",
    authDomain: "<PROJECT_ID>.firebaseapp.com",
    databaseURL: "https://<DATABASE_NAME>.firebaseio.com",
    projectId: "<PROJECT_ID>",
    storageBucket: "<BUCKET>.appspot.com",
    messagingSenderId: "<SENDER_ID>",
  };
  firebase.initializeApp(config);
</script>

I will update my example at github for OpenKrown Engine MIT License soon.

And get it on more in details.

Leave a Reply

Your email address will not be published. Required fields are marked *

two × 1 =