After adding flutter_localizations in my App and running the command 'flutter packages pub run build_runner watch --delete-conflicting-output', no .g dart files are generated.
dependencies: flutter: sdk: flutter flutter_localizations: sdk: flutter
dev_dependencies: build_runner: ^2.4.6
import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:flutter_modular/flutter_modular.dart';
import 'package:sindico_virtual_app/app/shared/theme/default_theme.dart';
import 'package:sindico_virtual_app/app/shared/widgets/glow_blocking.dart';
class AppWidget extends StatelessWidget {
const AppWidget({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
//
// SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(statusBarColor: Colors.transparent));
return MaterialApp.router(
routeInformationParser: Modular.routeInformationParser,
routerDelegate: Modular.routerDelegate,
title: 'App',
theme: defaultTheme(),
debugShowCheckedModeBanner: false,
scrollBehavior: GlowBlockingScrollBehavior(),
localizationsDelegates: [
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
],
supportedLocales: [const Locale('pt', 'BR')],
);
}
}