2020-10-28 13:10:43 +01:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
|
|
|
|
import '../util/extension_helper.dart';
|
2020-10-30 13:35:02 +01:00
|
|
|
import '../widgets/custom_widget.dart';
|
2020-10-28 13:10:43 +01:00
|
|
|
import 'licenses.dart';
|
|
|
|
|
|
|
|
class Libries extends StatelessWidget {
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return AnnotatedRegion<SystemUiOverlayStyle>(
|
2022-06-03 19:33:34 +02:00
|
|
|
value: context.overlay,
|
2020-10-28 13:10:43 +01:00
|
|
|
child: Scaffold(
|
|
|
|
appBar: AppBar(
|
2022-06-03 16:03:21 +02:00
|
|
|
title: Text(context.s.settingsLibraries),
|
2020-10-28 13:10:43 +01:00
|
|
|
leading: CustomBackButton(),
|
|
|
|
elevation: 0,
|
|
|
|
backgroundColor: Theme.of(context).primaryColor,
|
|
|
|
),
|
|
|
|
body: SafeArea(
|
|
|
|
child: Scrollbar(
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
scrollDirection: Axis.vertical,
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
children: <Widget>[
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.all(10.0),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
height: 30.0,
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 70),
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
child: Text('Google',
|
|
|
|
style: Theme.of(context)
|
|
|
|
.textTheme
|
2022-04-30 17:16:19 +02:00
|
|
|
.bodyText1!
|
2022-06-03 19:33:34 +02:00
|
|
|
.copyWith(color: context.accentColor)),
|
2020-10-28 13:10:43 +01:00
|
|
|
),
|
|
|
|
Column(
|
|
|
|
children: google.map<Widget>(
|
|
|
|
(e) {
|
|
|
|
return ListTile(
|
|
|
|
contentPadding: EdgeInsets.symmetric(horizontal: 80),
|
2022-06-03 19:33:34 +02:00
|
|
|
onTap: () => e.link.launchUrl,
|
2020-10-28 13:10:43 +01:00
|
|
|
title: Text(e.name),
|
|
|
|
subtitle: Text(e.license),
|
|
|
|
);
|
|
|
|
},
|
|
|
|
).toList(),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
height: 30.0,
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 70),
|
|
|
|
alignment: Alignment.centerLeft,
|
2022-06-03 16:03:21 +02:00
|
|
|
child: Text(context.s.fonts,
|
2020-10-28 13:10:43 +01:00
|
|
|
style: Theme.of(context)
|
|
|
|
.textTheme
|
2022-04-30 17:16:19 +02:00
|
|
|
.bodyText1!
|
2022-06-03 19:33:34 +02:00
|
|
|
.copyWith(color: context.accentColor)),
|
2020-10-28 13:10:43 +01:00
|
|
|
),
|
|
|
|
Column(
|
|
|
|
children: fonts.map<Widget>(
|
|
|
|
(e) {
|
|
|
|
return ListTile(
|
|
|
|
contentPadding: EdgeInsets.symmetric(horizontal: 80),
|
2022-06-03 19:33:34 +02:00
|
|
|
onTap: () => e.link.launchUrl,
|
2020-10-28 13:10:43 +01:00
|
|
|
title: Text(e.name),
|
|
|
|
subtitle: Text(e.license),
|
|
|
|
);
|
|
|
|
},
|
|
|
|
).toList(),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
height: 30.0,
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 70),
|
|
|
|
alignment: Alignment.centerLeft,
|
2022-06-03 16:03:21 +02:00
|
|
|
child: Text(context.s.plugins,
|
2020-10-28 13:10:43 +01:00
|
|
|
style: Theme.of(context)
|
|
|
|
.textTheme
|
2022-04-30 17:16:19 +02:00
|
|
|
.bodyText1!
|
2022-06-03 19:33:34 +02:00
|
|
|
.copyWith(color: context.accentColor)),
|
2020-10-28 13:10:43 +01:00
|
|
|
),
|
|
|
|
Container(
|
|
|
|
child: Column(
|
|
|
|
children: plugins.map<Widget>(
|
|
|
|
(e) {
|
|
|
|
return ListTile(
|
2022-06-03 19:33:34 +02:00
|
|
|
onTap: () => e.link.launchUrl,
|
2020-10-28 13:10:43 +01:00
|
|
|
contentPadding:
|
|
|
|
EdgeInsets.symmetric(horizontal: 80),
|
|
|
|
title: Text(e.name),
|
|
|
|
subtitle: Text(e.license),
|
|
|
|
);
|
|
|
|
},
|
|
|
|
).toList(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|