Skip to content

app_l10n.dart文件没提交吧,都是这个相关的错误 #165

@mosquitoxiang

Description

@mosquitoxiang

Waiting for connection from debug service on Edge...
lib/src/flutter_unit.dart:14:8: Error: Error when reading 'lib/src/l10n/gen/app_l10n.dart': 系统找不到指定的文件。

import 'l10n/gen/app_l10n.dart';
^
lib/src/navigation/router/app_route.dart:3:8: Error: Error when reading 'lib/src/l10n/gen/app_l10n.dart': 系统找不到指定的文件。

import 'package:flutter_unit/src/l10n/gen/app_l10n.dart';
^
lib/src/navigation/view/desktop/flutter_unit_desk_navigation.dart:3:8: Error: Error when reading 'lib/src/l10n/gen/app_l10n.dart': 系统找不到指定的文件。

import 'package:flutter_unit/src/l10n/gen/app_l10n.dart';
^
lib/src/navigation/model/app_tab.dart:4:8: Error: Error when reading 'lib/src/l10n/gen/app_l10n.dart': 系统找不到指定的文件。

import 'package:flutter_unit/src/l10n/gen/app_l10n.dart';
^
lib/src/navigation/view/mobile/news.dart:6:8: Error: Error when reading 'lib/src/l10n/gen/app_l10n.dart': 系统找不到指定的文件。

import '../../../l10n/gen/app_l10n.dart';
^
lib/src/navigation/view/mobile/pure_bottom_bar.dart:3:8: Error: Error when reading 'lib/src/l10n/gen/app_l10n.dart': 系统找不到指定的文件。

import '../../../l10n/gen/app_l10n.dart';
^
lib/src/navigation/model/app_tab.dart:23:16: Error: Type 'AppL10n' not found.
String label(AppL10n l10n) {
^^^^^^^
lib/src/navigation/model/app_tab.dart:44:17: Error: Type 'AppL10n' not found.
IconMenu menu(AppL10n l10n) => IconMenu(
^^^^^^^
lib/src/flutter_unit.dart:83:9: Error: Not a constant expression.
AppL10n.delegate,
^^^^^^^
lib/src/navigation/router/app_route.dart:32:16: Error: Undefined name 'AppL10n'.
title: AppL10n.of(ctx).news,
^^^^^^^
lib/src/navigation/view/desktop/flutter_unit_desk_navigation.dart:62:5: Error: 'AppL10n' isn't a type.
AppL10n l10n = AppL10n.of(context);
^^^^^^^
lib/src/navigation/view/desktop/flutter_unit_desk_navigation.dart:62:20: Error: The getter 'AppL10n' isn't defined for the type '_DeskNavigationRailState'.

  • '_DeskNavigationRailState' is from 'package:flutter_unit/src/navigation/view/desktop/flutter_unit_desk_navigation.dart' ('lib/src/navigation/view/desktop/flutter_unit_desk_navigation.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'AppL10n'.
    AppL10n l10n = AppL10n.of(context);
    ^^^^^^^
    lib/src/navigation/model/app_tab.dart:23:16: Error: 'AppL10n' isn't a type.
    String label(AppL10n l10n) {
    ^^^^^^^
    lib/src/navigation/model/app_tab.dart:44:17: Error: 'AppL10n' isn't a type.
    IconMenu menu(AppL10n l10n) => IconMenu(
    ^^^^^^^
    lib/src/navigation/view/mobile/news.dart:20:5: Error: 'AppL10n' isn't a type.
    AppL10n l10n = AppL10n.of(context);
    ^^^^^^^
    lib/src/navigation/view/mobile/news.dart:20:20: Error: The getter 'AppL10n' isn't defined for the type '_NewsHeaderState'.
  • '_NewsHeaderState' is from 'package:flutter_unit/src/navigation/view/mobile/news.dart' ('lib/src/navigation/view/mobile/news.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'AppL10n'.
    AppL10n l10n = AppL10n.of(context);
    ^^^^^^^
    lib/src/navigation/view/mobile/pure_bottom_bar.dart:21:5: Error: 'AppL10n' isn't a type.
    AppL10n l10n = AppL10n.of(context);
    ^^^^^^^
    lib/src/navigation/view/mobile/pure_bottom_bar.dart:21:20: Error: The getter 'AppL10n' isn't defined for the type 'PureBottomBar'.
  • 'PureBottomBar' is from 'package:flutter_unit/src/navigation/view/mobile/pure_bottom_bar.dart' ('lib/src/navigation/view/mobile/pure_bottom_bar.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'AppL10n'.
    AppL10n l10n = AppL10n.of(context);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions