screenshots

This commit is contained in:
Jonas Bark
2025-12-20 10:13:20 +01:00
parent f5234d0c11
commit b0f3dffc3c
28 changed files with 50 additions and 48 deletions

View File

@@ -111,7 +111,7 @@ class _ConfigurationPageState extends State<ConfigurationPage> {
},
),
if (core.settings.getTrainerApp() != null) ...[
if (core.settings.getTrainerApp()!.supportsOpenBikeProtocol == true)
if (core.settings.getTrainerApp()!.supportsOpenBikeProtocol == true && !screenshotMode)
Text(
AppLocalizations.of(context).openBikeControlAnnouncement(core.settings.getTrainerApp()!.name),
).xSmall,
@@ -162,7 +162,7 @@ class _ConfigurationPageState extends State<ConfigurationPage> {
],
),
],
if (core.settings.getTrainerApp()?.star == true)
if (core.settings.getTrainerApp()?.star == true && !screenshotMode)
Row(
spacing: 8,
children: [

View File

@@ -23,7 +23,7 @@ class _CustomizeState extends State<CustomizePage> {
@override
Widget build(BuildContext context) {
return SingleChildScrollView(
padding: EdgeInsets.symmetric(vertical: 32, horizontal: 16),
padding: EdgeInsets.all(16),
child: Column(
spacing: 12,
mainAxisAlignment: MainAxisAlignment.start,

View File

@@ -1,6 +1,7 @@
import 'dart:io';
import 'package:bike_control/gen/l10n.dart';
import 'package:bike_control/main.dart';
import 'package:bike_control/pages/button_simulator.dart';
import 'package:bike_control/pages/markdown.dart';
import 'package:bike_control/utils/core.dart';
@@ -112,57 +113,58 @@ class _ScanWidgetState extends State<ScanWidget> {
},
),
SizedBox(),
Column(
spacing: 8,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
OutlineButton(
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(builder: (c) => MarkdownPage(assetPath: 'TROUBLESHOOTING.md')),
);
},
leading: Icon(Icons.help_outline),
child: Text(context.i18n.showTroubleshootingGuide),
),
OutlineButton(
onPressed: () {
launchUrlString(
'https://github.com/jonasbark/swiftcontrol/?tab=readme-ov-file#supported-devices',
);
},
leading: Icon(Icons.gamepad_outlined),
child: Text(context.i18n.showSupportedControllers),
),
if (core.settings.getIgnoredDevices().isNotEmpty)
if (!screenshotMode)
Column(
spacing: 8,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
OutlineButton(
leading: Icon(Icons.block_outlined),
onPressed: () async {
await showDialog(
context: context,
builder: (context) => IgnoredDevicesDialog(),
);
setState(() {});
},
child: Text(context.i18n.manageIgnoredDevices),
),
if (core.connection.controllerDevices.isEmpty)
PrimaryButton(
leading: Icon(Icons.computer_outlined),
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (c) => ButtonSimulator(),
),
MaterialPageRoute(builder: (c) => MarkdownPage(assetPath: 'TROUBLESHOOTING.md')),
);
},
child: Text(AppLocalizations.of(context).noControllerUseCompanionMode),
leading: Icon(Icons.help_outline),
child: Text(context.i18n.showTroubleshootingGuide),
),
],
),
OutlineButton(
onPressed: () {
launchUrlString(
'https://github.com/jonasbark/swiftcontrol/?tab=readme-ov-file#supported-devices',
);
},
leading: Icon(Icons.gamepad_outlined),
child: Text(context.i18n.showSupportedControllers),
),
if (core.settings.getIgnoredDevices().isNotEmpty)
OutlineButton(
leading: Icon(Icons.block_outlined),
onPressed: () async {
await showDialog(
context: context,
builder: (context) => IgnoredDevicesDialog(),
);
setState(() {});
},
child: Text(context.i18n.manageIgnoredDevices),
),
if (core.connection.controllerDevices.isEmpty)
PrimaryButton(
leading: Icon(Icons.computer_outlined),
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (c) => ButtonSimulator(),
),
);
},
child: Text(AppLocalizations.of(context).noControllerUseCompanionMode),
),
],
),
],
);
} else {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 207 KiB

After

Width:  |  Height:  |  Size: 208 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 238 KiB

After

Width:  |  Height:  |  Size: 238 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 164 KiB

After

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 206 KiB

After

Width:  |  Height:  |  Size: 205 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 201 KiB

After

Width:  |  Height:  |  Size: 200 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 KiB

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 323 KiB

After

Width:  |  Height:  |  Size: 323 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 345 KiB

After

Width:  |  Height:  |  Size: 345 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 229 KiB

After

Width:  |  Height:  |  Size: 228 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 305 KiB

After

Width:  |  Height:  |  Size: 305 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 KiB

After

Width:  |  Height:  |  Size: 290 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 231 KiB

After

Width:  |  Height:  |  Size: 231 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 281 KiB

After

Width:  |  Height:  |  Size: 282 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 301 KiB

After

Width:  |  Height:  |  Size: 300 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 236 KiB

After

Width:  |  Height:  |  Size: 233 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 292 KiB

After

Width:  |  Height:  |  Size: 292 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 275 KiB

After

Width:  |  Height:  |  Size: 275 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 202 KiB

After

Width:  |  Height:  |  Size: 199 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 337 KiB

After

Width:  |  Height:  |  Size: 322 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 385 KiB

After

Width:  |  Height:  |  Size: 358 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 238 KiB

After

Width:  |  Height:  |  Size: 216 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 325 KiB

After

Width:  |  Height:  |  Size: 312 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 300 KiB

After

Width:  |  Height:  |  Size: 302 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 KiB

After

Width:  |  Height:  |  Size: 243 KiB

View File

@@ -32,7 +32,7 @@ Future<void> main() async {
PackageInfo.setMockInitialValues(
appName: 'BikeControl',
packageName: 'de.jonasbark.swiftcontrol',
version: '4.0.0',
version: '4.2.0',
buildNumber: '1',
buildSignature: '',
);