mirror of
https://gitlab.com/mysocialportal/relatica
synced 2024-10-18 13:33:32 +00:00
Add Version strings to settings and splash screens
This commit is contained in:
parent
3ce4a7985c
commit
fcf56cbf98
3 changed files with 15 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
|||
* Changes
|
||||
* Adds Relatica User Agent string to API requests so that Friendica servers running >2023.06
|
||||
with blockbot enabled will allow requests.
|
||||
* Adds version string to the settings screen to help users identify version installed
|
||||
|
||||
## Version 0.10.0 (beta)
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@ class SettingsScreen extends StatelessWidget {
|
|||
child: ResponsiveMaxWidth(
|
||||
child: ListView(
|
||||
children: [
|
||||
buildVersionString(),
|
||||
buildLowBandwidthWidget(settings),
|
||||
buildThemeWidget(settings),
|
||||
if (!kReleaseMode) buildColorBlindnessTestSettings(settings),
|
||||
|
@ -40,6 +41,18 @@ class SettingsScreen extends StatelessWidget {
|
|||
));
|
||||
}
|
||||
|
||||
Widget buildVersionString() {
|
||||
return Center(
|
||||
child: Text(
|
||||
'Relatica $appVersion',
|
||||
style: const TextStyle(
|
||||
decoration: TextDecoration.underline,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Widget buildLowBandwidthWidget(SettingsService settings) {
|
||||
return ListTile(
|
||||
title: const Text('Low bandwidth mode'),
|
||||
|
|
|
@ -29,7 +29,7 @@ class SplashScreen extends StatelessWidget {
|
|||
SvgPicture.asset('icon/relatica_logo.svg', width: 128),
|
||||
const VerticalPadding(),
|
||||
Text(
|
||||
'Relatica',
|
||||
'Relatica $appVersion',
|
||||
style: Theme.of(context).textTheme.headlineLarge,
|
||||
),
|
||||
const VerticalPadding(),
|
||||
|
|
Loading…
Reference in a new issue