You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
817 B
37 lines
817 B
import 'package:bytedesk_kefu/model/message.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class ChannelDetailPage extends StatefulWidget {
|
|
//
|
|
final Message? message;
|
|
ChannelDetailPage({Key? key, @required this.message}) : super(key: key);
|
|
|
|
@override
|
|
_ChannelDetailPageState createState() => _ChannelDetailPageState();
|
|
}
|
|
|
|
class _ChannelDetailPageState extends State<ChannelDetailPage> {
|
|
//
|
|
String? _title = '';
|
|
String? _content = '';
|
|
|
|
@override
|
|
void initState() {
|
|
_title = widget.message!.channelTitle();
|
|
_content = widget.message!.channelContent();
|
|
super.initState();
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
title: Text(_title!),
|
|
),
|
|
body: Container(
|
|
child: Text(_content!),
|
|
),
|
|
);
|
|
}
|
|
}
|