mirror of https://github.com/flutter/samples.git
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.
31 lines
877 B
31 lines
877 B
// Copyright 2024 The Flutter team. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:logging/logging.dart';
|
|
import 'package:provider/provider.dart';
|
|
|
|
import 'config/dependencies.dart';
|
|
import 'data/services/shared_preferences_service.dart';
|
|
import 'main.dart';
|
|
|
|
/// Development config entry point.
|
|
/// Launch with `flutter run --target lib/main_development.dart`.
|
|
/// Uses local data.
|
|
Future<void> main() async {
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
|
|
Logger.root.level = Level.ALL;
|
|
final sharedPrefsService = await SharedPreferencesService.create();
|
|
|
|
runApp(
|
|
MultiProvider(
|
|
providers: [
|
|
Provider.value(value: sharedPrefsService),
|
|
...providersRemote,
|
|
],
|
|
child: const MainApp(),
|
|
),
|
|
);
|
|
} |