You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.2 KiB

import 'dart:io';
import 'package:firebase_core/firebase_core.dart';
1 year ago
import 'package:flutter/material.dart';
import 'package:healthcare_user/chat/chatpage.dart';
import 'package:healthcare_user/common/splash_screen.dart';
1 year ago
import 'package:sizer/sizer.dart';
import 'package:flutter/services.dart';
void main () async {
// Set default home.
Widget _defaultHome = Splash();
1 year ago
WidgetsFlutterBinding.ensureInitialized();
FirebaseOptions firebaseOptions = FirebaseOptions(
apiKey: 'AIzaSyC89L-Xg53Bd_mdCPvKOu7BcC9Ya6UZeds',
appId: '1:60196905754:android:05ea9ecef5280e578a42a3',
messagingSenderId: '60196905754 ',
projectId: 'health-pharma-67443',
storageBucket: "health-pharma-67443.appspot.com"// Firebase Realtime Database URL
);
Platform.isAndroid? await Firebase.initializeApp(options: firebaseOptions):await Firebase.initializeApp();
1 year ago
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp])
.then((_) {
runApp(Sizer(
builder: (context, orientation, deviceType) {
return MaterialApp(
title: 'Health Care',
theme: ThemeData.light(),
home:_defaultHome,
debugShowCheckedModeBanner: false,
);
},
));
});
}