New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Black Screen is coming after splash screen. #40
Comments
Are you using the plugin in asset or remote mode? |
I am also facing the same issue. Any Solution...? This is My code.. `import 'package:easy_localization/easy_localization.dart'; void main() => runApp(EasyLocalization( class MyApp extends StatelessWidget { class MyHomePage extends StatefulWidget { final String title; @OverRide class _MyHomePageState extends State { void _incrementCounter() { @OverRide |
@sathya4code try this example |
@aissat i tried this example. In this example also i am getting black screen. Default Splash Screen -> Black Screen -> Main Class. |
@sathya4code which version you are used it?!! |
@aissat i am using easy_localization 1.3.3 and Flutter 1.12.13+hotfix.8 |
same issue |
@sathya4code i fixed your code import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
void main() => runApp(EasyLocalization(
child: MyApp(),
));
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
var data = EasyLocalizationProvider.of(context).data;
return EasyLocalizationProvider(
data: data,
child: MaterialApp(
localizationsDelegates: [
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
EasyLocalizationDelegate(locale: data.locale, path: 'resources/langs')
],
locale: data.locale,
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(title: 'Flutter Demo Home Page'),
),
);
}
}
class MyHomePage extends StatefulWidget {
final title;
MyHomePage({Key key, this.title}) : super(key: key);
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
int _counter = 0;
void _incrementCounter() {
setState(() {
_counter++;
});
}
@override
Widget build(BuildContext context) {
print(widget.title);
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'You have pushed the button this many times:',
),
Text(
'$_counter',
style: Theme.of(context).textTheme.display1,
),
],
),
),
floatingActionButton: FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'Increment',
child: Icon(Icons.add),
), // This trailing comma makes auto-formatting nicer for build methods.
);
}
}
|
@aissat Issue not fixed. Run this code, press the home button, open the app, black screen not coming. But killing the app and again opening the app makes black screen coming.. Can you please check this and give us a solution. |
@sathya4code I tested code and worked well |
I tested the same code with 1.3.5 version. Getting the same issue. |
@sathya4code I need more details about this issue |
@aissat This is what i got when i debug. I tested with multiple devices but still getting black screen.
|
@sathya4code this issues not from my package |
Hi Team,
Once added easy_localization into my project and used. It started getting a black screen after the splash screen.
Any fix for this issue.
The text was updated successfully, but these errors were encountered: