Skip to content

Commit

Permalink
enhance: ChannelDetailPageに行けるように
Browse files Browse the repository at this point in the history
  • Loading branch information
4ster1sk committed Nov 24, 2024
1 parent b01c83c commit 8e1b4e6
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions lib/view/channel_description_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import "package:flutter/material.dart";
import "package:flutter_gen/gen_l10n/app_localizations.dart";
import "package:hooks_riverpod/hooks_riverpod.dart";
import "package:miria/model/account.dart";
import "package:miria/providers.dart";
import "package:miria/router/app_router.dart";
import "package:miria/view/channels_page/channel_detail_info.dart";
import "package:miria/view/channels_page/channel_detail_page.dart";
import "package:miria/view/common/account_scope.dart";

@RoutePage()
Expand All @@ -26,11 +29,32 @@ class ChannelDescriptionDialog extends ConsumerWidget
return AlertDialog(
titlePadding: EdgeInsets.zero,
title: Container(
padding: const EdgeInsets.all(10),
padding: const EdgeInsets.only(left: 10),
decoration: BoxDecoration(color: Theme.of(context).primaryColorDark),
child: Text(
S.of(context).channelInformation,
style: const TextStyle(color: Colors.white),
child: Row(
children: [
Expanded(
child: Text(
S.of(context).channelInformation,
style: const TextStyle(color: Colors.white),
overflow: TextOverflow.ellipsis,
),
),
const Padding(
padding: EdgeInsets.only(right: 5),
),
IconButton(
onPressed: () async {
await context.pushRoute(
ChannelDetailRoute(
accountContext: AccountContext.as(account),
channelId: channelId,
),
);
},
icon: const Icon(Icons.keyboard_arrow_right),
),
],
),
),
content: SizedBox(
Expand Down

0 comments on commit 8e1b4e6

Please sign in to comment.