updated project style guidelines
This commit is contained in:
@ -41,16 +41,14 @@ Future<void> main() async {
|
||||
log('Error initializing Firebase app!');
|
||||
}
|
||||
|
||||
ByteData data = await PlatformAssetBundle().load('assets/ca/lets-encrypt-r3.pem');
|
||||
var data = await PlatformAssetBundle().load('assets/ca/lets-encrypt-r3.pem');
|
||||
SecurityContext.defaultContext.setTrustedCertificatesBytes(data.buffer.asUint8List());
|
||||
|
||||
if(kReleaseMode) {
|
||||
ErrorWidget.builder = (error) {
|
||||
return PlaceholderView(
|
||||
ErrorWidget.builder = (error) => PlaceholderView(
|
||||
icon: Icons.phonelink_erase_rounded,
|
||||
text: error.toStringShort(),
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
runApp(
|
||||
@ -101,8 +99,7 @@ class _MainState extends State<Main> {
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Directionality(
|
||||
Widget build(BuildContext context) => Directionality(
|
||||
textDirection: TextDirection.ltr,
|
||||
child: Consumer<SettingsProvider>(
|
||||
builder: (context, settings, child) {
|
||||
@ -146,7 +143,6 @@ class _MainState extends State<Main> {
|
||||
},
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
|
Reference in New Issue
Block a user