1
0
mirror of https://github.com/stonega/tsacdop synced 2025-02-03 17:07:38 +01:00

30 lines
812 B
Dart
Raw Normal View History

2020-02-09 20:29:09 +08:00
import 'package:flutter/material.dart';
class AboutApp extends StatelessWidget {
TextSpan buildTextSpan() {
return TextSpan(children: [
TextSpan(text: 'About Dopcast Player\n',style: TextStyle(fontSize: 20)),
TextSpan(
text:
'Dopcast Player is a podcast client developed by flutter, is a simple, easy-use player.\n'),
TextSpan(
text:
'Github https://github.com/stonga .\n'),
]);
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Colors.grey[100],
title: Text('About'),
),
body: Container(
padding: EdgeInsets.all(20),
alignment: Alignment.topLeft,
child: Text.rich(buildTextSpan()),
));
}
}