copy game title and publisher

This commit is contained in:
niuhuan 2022-02-02 20:38:44 +08:00
parent 4911c5b11c
commit 4f8cc81769
3 changed files with 16 additions and 5 deletions

View File

@ -85,8 +85,8 @@ class _GameInfoScreenState extends State<GameInfoScreen> {
Navigator.push( Navigator.push(
context, context,
MaterialPageRoute( MaterialPageRoute(
builder: (context) => builder: (context) => GameDownloadScreen(info),
GameDownloadScreen(info)), ),
); );
}, },
child: Container( child: Container(

View File

@ -1,5 +1,6 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart'; import 'package:flutter_svg/svg.dart';
import 'package:pikapika/basic/Cross.dart';
import 'package:pikapika/basic/Entities.dart'; import 'package:pikapika/basic/Entities.dart';
import 'Images.dart'; import 'Images.dart';
@ -45,8 +46,18 @@ class GameTitleCard extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.spaceAround, mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text(info.title, style: titleStyle), GestureDetector(
Text(info.publisher, style: publisherStyle), onLongPress: () {
confirmCopy(context, info.title);
},
child: Text(info.title, style: titleStyle),
),
GestureDetector(
onLongPress: () {
confirmCopy(context, info.publisher);
},
child: Text(info.publisher, style: publisherStyle),
),
Text(info.version, style: versionStyle), Text(info.version, style: versionStyle),
], ],
), ),

View File

@ -19,4 +19,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: 6eac6b3292e5142cfc23bdeb71848a40ec51c14c PODFILE CHECKSUM: 6eac6b3292e5142cfc23bdeb71848a40ec51c14c
COCOAPODS: 1.10.1 COCOAPODS: 1.11.2