stacked icon indicating copy to clipboard operation
stacked copied to clipboard

[stacked_generator] unexpected import in app.locator.dart

Open katusiky opened this issue 5 years ago • 3 comments

The app.locator.dart file is being generated with an empty import line.

// GENERATED CODE - DO NOT MODIFY BY HAND

// **************************************************************************
// StackedLocatorGenerator
// **************************************************************************

// ignore_for_file: public_member_api_docs

import 'package:stacked/stacked.dart';
import 'package:stacked_services/stacked_services.dart';

import ''; <--- THIS IS THE UNEXPECTED IMPORT
import '../services/authentication_service.dart';

final locator = StackedLocator.instance;

Future setupLocator() async {
  locator.registerLazySingleton(() => NavigationService());
  locator.registerLazySingleton(() => AuthenticationService());
}

katusiky avatar Mar 29 '21 02:03 katusiky

Thanks. Will get this removed.

FilledStacks avatar Apr 01 '21 12:04 FilledStacks

Working on it.

hurbes avatar Apr 02 '21 06:04 hurbes

Fix Pushed in 0.3.2

FilledStacks avatar Apr 02 '21 14:04 FilledStacks