mirror of
https://github.com/Iconica-Development/flutter_timeline.git
synced 2025-05-19 02:23:46 +02:00
fix: Fix firebase options
This commit is contained in:
parent
1fc7c8d2de
commit
6a27f26fc9
2 changed files with 6 additions and 5 deletions
|
@ -31,7 +31,8 @@ class MyHomePage extends StatefulWidget {
|
|||
}
|
||||
|
||||
class _MyHomePageState extends State<MyHomePage> {
|
||||
var timelineService = TimelineService(postService: LocalTimelinePostService());
|
||||
var timelineService =
|
||||
TimelineService(postService: LocalTimelinePostService());
|
||||
var timelineOptions = options;
|
||||
|
||||
@override
|
||||
|
@ -64,10 +65,10 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||
),
|
||||
body: SafeArea(
|
||||
child: timeLineNavigatorUserStory(
|
||||
getConfig(
|
||||
configuration: getConfig(
|
||||
timelineService,
|
||||
),
|
||||
context),
|
||||
context: context),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
@ -18,13 +18,13 @@ class FirebaseTimelinePostService extends TimelinePostService
|
|||
FirebaseTimelinePostService({
|
||||
required TimelineUserService userService,
|
||||
FirebaseApp? app,
|
||||
options = const FirebaseTimelineOptions(),
|
||||
FirebaseTimelineOptions? options,
|
||||
}) {
|
||||
var appInstance = app ?? Firebase.app();
|
||||
_db = FirebaseFirestore.instanceFor(app: appInstance);
|
||||
_storage = FirebaseStorage.instanceFor(app: appInstance);
|
||||
_userService = userService;
|
||||
_options = options;
|
||||
_options = options ?? const FirebaseTimelineOptions();
|
||||
}
|
||||
|
||||
late FirebaseFirestore _db;
|
||||
|
|
Loading…
Reference in a new issue