File tree Expand file tree Collapse file tree 10 files changed +118
-0
lines changed
kotlin/com/adityanjr/covid19_tracker Expand file tree Collapse file tree 10 files changed +118
-0
lines changed Original file line number Diff line number Diff line change 1+ package com.adityanjr.covid19_tracker
2+
3+ import io.flutter.embedding.android.FlutterActivity
4+
5+ class MainActivity : FlutterActivity () {
6+ }
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <!-- Modify this file to customize your launch splash screen -->
3+ <layer-list xmlns : android =" http://schemas.android.com/apk/res/android" >
4+ <item android : drawable =" ?android:colorBackground" />
5+
6+ <!-- You can insert your own image assets here -->
7+ <!-- <item>
8+ <bitmap
9+ android:gravity="center"
10+ android:src="@mipmap/launch_image" />
11+ </item> -->
12+ </layer-list >
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <resources >
3+ <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
4+ <style name =" LaunchTheme" parent =" @android:style/Theme.Black.NoTitleBar" >
5+ <!-- Show a splash screen on the activity. Automatically removed when
6+ Flutter draws its first frame -->
7+ <item name =" android:windowBackground" >@drawable/launch_background</item >
8+ </style >
9+ <!-- Theme applied to the Android Window as soon as the process has started.
10+ This theme determines the color of the Android Window while your
11+ Flutter UI initializes, as well as behind your Flutter UI while its
12+ running.
13+
14+ This Theme is only used starting with V2 of Flutter's Android embedding. -->
15+ <style name =" NormalTheme" parent =" @android:style/Theme.Black.NoTitleBar" >
16+ <item name =" android:windowBackground" >?android:colorBackground</item >
17+ </style >
18+ </resources >
Original file line number Diff line number Diff line change 1+ import UIKit
2+ import Flutter
3+
4+ @UIApplicationMain
5+ @objc class AppDelegate : FlutterAppDelegate {
6+ override func application(
7+ _ application: UIApplication ,
8+ didFinishLaunchingWithOptions launchOptions: [ UIApplication . LaunchOptionsKey : Any ] ?
9+ ) -> Bool {
10+ GeneratedPluginRegistrant . register ( with: self )
11+ return super. application ( application, didFinishLaunchingWithOptions: launchOptions)
12+ }
13+ }
Original file line number Diff line number Diff line change 1+ #import " GeneratedPluginRegistrant.h"
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html >
3+ < head >
4+ <!--
5+ If you are serving your web app in a path other than the root, change the
6+ href value below to reflect the base path you are serving from.
7+
8+ The path provided below has to start and end with a slash "/" in order for
9+ it to work correctly.
10+
11+ Fore more details:
12+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
13+ -->
14+ < base href ="/ ">
15+
16+ < meta charset ="UTF-8 ">
17+ < meta content ="IE=Edge " http-equiv ="X-UA-Compatible ">
18+ < meta name ="description " content ="A new Flutter project. ">
19+
20+ <!-- iOS meta tags & icons -->
21+ < meta name ="apple-mobile-web-app-capable " content ="yes ">
22+ < meta name ="apple-mobile-web-app-status-bar-style " content ="black ">
23+ < meta name ="apple-mobile-web-app-title " content ="covid19_tracker ">
24+ < link rel ="apple-touch-icon " href ="icons/Icon-192.png ">
25+
26+ <!-- Favicon -->
27+ < link rel ="icon " type ="image/png " href ="favicon.png "/>
28+
29+ < title > covid19_tracker</ title >
30+ < link rel ="manifest " href ="manifest.json ">
31+ </ head >
32+ < body >
33+ <!-- This script installs service_worker.js to provide PWA functionality to
34+ application. For more information, see:
35+ https://developers.google.com/web/fundamentals/primers/service-workers -->
36+ < script >
37+ if ( 'serviceWorker' in navigator ) {
38+ window . addEventListener ( 'flutter-first-frame' , function ( ) {
39+ navigator . serviceWorker . register ( 'flutter_service_worker.js' ) ;
40+ } ) ;
41+ }
42+ </ script >
43+ < script src ="main.dart.js " type ="application/javascript "> </ script >
44+ </ body >
45+ </ html >
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " covid19_tracker" ,
3+ "short_name" : " covid19_tracker" ,
4+ "start_url" : " ." ,
5+ "display" : " standalone" ,
6+ "background_color" : " #0175C2" ,
7+ "theme_color" : " #0175C2" ,
8+ "description" : " A new Flutter project." ,
9+ "orientation" : " portrait-primary" ,
10+ "prefer_related_applications" : false ,
11+ "icons" : [
12+ {
13+ "src" : " icons/Icon-192.png" ,
14+ "sizes" : " 192x192" ,
15+ "type" : " image/png"
16+ },
17+ {
18+ "src" : " icons/Icon-512.png" ,
19+ "sizes" : " 512x512" ,
20+ "type" : " image/png"
21+ }
22+ ]
23+ }
You can’t perform that action at this time.
0 commit comments