фиксы
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:moonwell_launcher/app/launcher_version.dart';
|
||||
import 'package:moonwell_launcher/app/design_system/mw_primitives.dart';
|
||||
import 'package:moonwell_launcher/app/theme/moonwell_design_system.dart';
|
||||
|
||||
@@ -718,37 +719,40 @@ class MwLauncherStatusBar extends StatelessWidget {
|
||||
final String? eta;
|
||||
final String? buildHash;
|
||||
@override
|
||||
Widget build(BuildContext context) => Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 32),
|
||||
decoration: const BoxDecoration(
|
||||
color: Color(0xD904060E),
|
||||
border: Border(top: BorderSide(color: _border)),
|
||||
),
|
||||
child: DefaultTextStyle(
|
||||
style: const TextStyle(
|
||||
fontFamily: 'JetBrains Mono',
|
||||
color: _muted,
|
||||
fontSize: 8,
|
||||
letterSpacing: .8,
|
||||
Widget build(BuildContext context) {
|
||||
final launcherVersion = LauncherVersionScope.of(context);
|
||||
return Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 32),
|
||||
decoration: const BoxDecoration(
|
||||
color: Color(0xD904060E),
|
||||
border: Border(top: BorderSide(color: _border)),
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: Text(status, maxLines: 1, overflow: TextOverflow.ellipsis),
|
||||
),
|
||||
if (fileCount != null) Text(fileCount!),
|
||||
if (speed != null) ...[const SizedBox(width: 24), Text(speed!)],
|
||||
if (eta != null) ...[const SizedBox(width: 24), Text(eta!)],
|
||||
if (buildHash != null) ...[
|
||||
child: DefaultTextStyle(
|
||||
style: const TextStyle(
|
||||
fontFamily: 'JetBrains Mono',
|
||||
color: _muted,
|
||||
fontSize: 8,
|
||||
letterSpacing: .8,
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: Text(status, maxLines: 1, overflow: TextOverflow.ellipsis),
|
||||
),
|
||||
if (fileCount != null) Text(fileCount!),
|
||||
if (speed != null) ...[const SizedBox(width: 24), Text(speed!)],
|
||||
if (eta != null) ...[const SizedBox(width: 24), Text(eta!)],
|
||||
if (buildHash != null) ...[
|
||||
const SizedBox(width: 24),
|
||||
Text(buildHash!),
|
||||
],
|
||||
const SizedBox(width: 24),
|
||||
Text(buildHash!),
|
||||
Text('Лаунчер v$launcherVersion'),
|
||||
],
|
||||
const SizedBox(width: 24),
|
||||
const Text('Лаунчер v1.0.0'),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class MwAccountAffordance extends StatelessWidget {
|
||||
|
||||
Reference in New Issue
Block a user