mirror of
https://github.com/ente-io/ente.git
synced 2025-06-02 15:29:53 +00:00
28 lines
839 B
Dart
28 lines
839 B
Dart
import 'package:ente_auth/core/configuration.dart';
|
|
import 'package:ente_auth/core/constants.dart';
|
|
import 'package:ente_auth/l10n/l10n.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class DeveloperSettingsWidget extends StatelessWidget {
|
|
const DeveloperSettingsWidget({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final endpoint = Configuration.instance.getHttpEndpoint();
|
|
if (endpoint != kDefaultProductionEndpoint) {
|
|
final endpointURI = Uri.parse(endpoint);
|
|
return Padding(
|
|
padding: const EdgeInsets.only(bottom: 20),
|
|
child: Text(
|
|
context.l10n.customEndpoint(
|
|
"${endpointURI.host}:${endpointURI.port}",
|
|
),
|
|
style: Theme.of(context).textTheme.bodySmall,
|
|
),
|
|
);
|
|
} else {
|
|
return const SizedBox.shrink();
|
|
}
|
|
}
|
|
}
|