updated project style guidelines

This commit is contained in:
2024-04-03 19:18:17 +02:00
parent 27618f4404
commit 4c7f53e309
185 changed files with 505 additions and 873 deletions

View File

@ -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() {