tsacdop-podcast-app-android/lib/home/appbar/about.dart

38 lines
1.1 KiB
Dart
Raw Normal View History

2020-02-09 13:29:09 +01:00
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
2020-02-09 13:29:09 +01:00
class AboutApp extends StatelessWidget {
TextSpan buildTextSpan() {
return TextSpan(children: [
TextSpan(text: 'Tsacdop\n', style: TextStyle(fontSize: 20)),
2020-02-09 13:29:09 +01:00
TextSpan(
text:
'Tsacdop is a podcast client developed by flutter, is a simple, easy-use player.\n'),
TextSpan(text: 'Github https://github.com/stonga/tsacdop .\n'),
2020-02-09 13:29:09 +01:00
]);
}
@override
Widget build(BuildContext context) {
return AnnotatedRegion<SystemUiOverlayStyle>(
value: SystemUiOverlayStyle(
statusBarIconBrightness: Theme.of(context).accentColorBrightness,
systemNavigationBarColor: Theme.of(context).primaryColor,
statusBarColor: Theme.of(context).primaryColor,
),
child: SafeArea(
child: Scaffold(
appBar: AppBar(
title: Text('Tsacdop'),
centerTitle: true,
),
body: Container(
padding: EdgeInsets.all(20),
alignment: Alignment.topLeft,
child: Text.rich(buildTextSpan()),
)),
),
);
2020-02-09 13:29:09 +01:00
}
}