Skip to content

Commit

Permalink
feat: discovery alert dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
damian-molinski committed Sep 23, 2024
1 parent 24f8658 commit 83902ef
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
13 changes: 12 additions & 1 deletion catalyst_voices/lib/pages/discovery/discovery_page.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:async';

import 'package:catalyst_voices/pages/discovery/current_status_text.dart';
import 'package:catalyst_voices/pages/discovery/toggle_state_text.dart';
import 'package:catalyst_voices/widgets/widgets.dart';
Expand Down Expand Up @@ -84,7 +86,16 @@ class _Segment extends StatelessWidget {
const Spacer(),
VoicesFilledButton(
child: const Text('CTA to Model'),
onTap: () {},
onTap: () {
unawaited(
VoicesDialog.show<void>(
context: context,
builder: (context) {
return const VoicesDesktopInfoDialog(title: Text(''));
},
),
);
},
),
],
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,9 @@ ThemeData _buildThemeData(
backgroundColor: voicesColorScheme.onSurfaceNeutralOpaqueLv0,
),
dialogTheme: DialogTheme(
// TODO(damian-molinski): themed value needed.
// We don't have it defined yet.
barrierColor: const Color(0x612A3D61),
// TODO(damian-molinski): themed value needed. We don't have it yet.
// N10-38
barrierColor: const Color(0x212A3D61),
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),
clipBehavior: Clip.hardEdge,
backgroundColor: voicesColorScheme.elevationsOnSurfaceNeutralLv1White,
Expand Down

0 comments on commit 83902ef

Please sign in to comment.