SteamCloudGame/lib/dialog/bt_description_dialog.dart
2025-01-07 19:40:39 +08:00

51 lines
1.9 KiB
Dart
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import 'package:flutter/material.dart';
class BtDescriptionDialog extends StatefulWidget {
BtDescriptionDialog();
@override
State<BtDescriptionDialog> createState() => _BtDescriptionDialogState();
}
class _BtDescriptionDialogState extends State<BtDescriptionDialog> {
@override
Widget build(BuildContext context) {
final size = MediaQuery.of(context).size;
final l14 = size.width / 25.71428571428571;
final t20 = size.width / 18;
final s13 = size.width / 27.692307692307;
return Material(
type: MaterialType.transparency, //透明类型
color: Color(0x1A000000),
child: Center(
child: Container(
margin: EdgeInsets.only(right: l14, left: l14),
decoration: BoxDecoration(color: Color(0xFF202530), borderRadius: BorderRadius.all(Radius.circular(7))),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Container(
alignment: Alignment.centerLeft,
margin: EdgeInsets.only(top: t20, left: l14),
child: Text(
"使用说明:",
style: TextStyle(fontSize: s13, color: Color(0xFF9D9D9D)),
),
),
Container(
alignment: Alignment.centerLeft,
margin: EdgeInsets.only(top: t20, left: l14, right: l14, bottom: t20),
child: Text(
"1. 本功能适用于蒸汽云游车机版TV版帮助用户在无实体手柄的情 况下尽可能还原手柄游戏体验。\n\n 2. 使用本功能前,请打开当前设备,游戏端设备的蓝牙开关。在搜索 列表中找到游戏端设备,点击连接,连接成功后即可正常游戏。",
style: TextStyle(fontSize: s13, color: Color(0xFF9D9D9D)),
),
),
],
),
),
),
);
}
}