Skip to content

Commit

Permalink
feat: improve join link view
Browse files Browse the repository at this point in the history
  • Loading branch information
luisburgos committed Sep 24, 2022
1 parent b72b7aa commit db9fd43
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:core/core.dart';
import 'package:example/shared/components/labeled_section.dart';
import 'package:flutter/material.dart';

class CopyJoinLinkView extends StatelessWidget {
Expand All @@ -13,29 +14,28 @@ class CopyJoinLinkView extends StatelessWidget {

@override
Widget build(BuildContext context) {
return Column(
children: [
Container(
decoration: BoxDecoration(
border: Border.all(
color: const Color.fromARGB(255, 51, 204, 255),
width: 1,
return LabeledSection(
label: 'JoinLink',
backgroundColor: Colors.blueGrey,
child: Row(
children: [
Expanded(
child: Padding(
padding: const EdgeInsets.all(10),
child: Text(joinLink),
),
borderRadius: BorderRadius.circular(5),
shape: BoxShape.rectangle,
),
child: Text(joinLink),
),
MainActionWidget(
action: MainAction(
label: 'Copy!',
onPressed: () {
debugPrint('$runtimeType onStartPlayTap');
onCopyJoinLinkTap(joinLink);
},
MainActionWidget(
action: MainAction(
label: 'Copy!',
onPressed: () {
debugPrint('$runtimeType onStartPlayTap');
onCopyJoinLinkTap(joinLink);
},
),
),
),
],
],
),
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ class TriviaInitialStatusView extends StatelessWidget {
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
const SizedBox(height: 50),
const TriviaDataView(
hostName: 'hostName',
triviaName: 'triviaName',
triviaDescription: 'triviaDescription',
triviaMainQuestion: 'triviaMainQuestion',
),
const SizedBox(height: 12),
CopyJoinLinkView(
joinLink: joinLink,
onCopyJoinLinkTap: (joinLink) {
Expand Down

0 comments on commit db9fd43

Please sign in to comment.