tsacdop-podcast-app-android/lib/settings/libries.dart

109 lines
4.0 KiB
Dart
Raw Normal View History

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>(
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!
.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),
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!
.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),
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!
.copyWith(color: context.accentColor)),
2020-10-28 13:10:43 +01:00
),
Container(
child: Column(
children: plugins.map<Widget>(
(e) {
return ListTile(
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(),
),
),
],
),
),
),
),
),
);
}
}