private_message_page.dart 986 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import 'package:flutter/material.dart';
  2. import 'package:sport/bean/user_info.dart';
  3. import 'package:sport/services/api/inject_api.dart';
  4. import 'package:sport/widgets/appbar.dart';
  5. import 'package:sport/widgets/error.dart';
  6. class PrivateMessagePage extends StatefulWidget {
  7. final UserInfo user;
  8. PrivateMessagePage(this.user);
  9. @override
  10. State<StatefulWidget> createState() => _PageState();
  11. }
  12. class _PageState extends State<PrivateMessagePage> with InjectApi {
  13. @override
  14. void initState() {
  15. super.initState();
  16. }
  17. @override
  18. Widget build(BuildContext context) {
  19. return Scaffold(
  20. appBar: AppBar(
  21. title: Text("${widget.user.name}"),
  22. leading: buildBackButton(context),
  23. ),
  24. body: Container(
  25. width: double.infinity,
  26. child: Column(
  27. crossAxisAlignment: CrossAxisAlignment.center,
  28. children: <Widget>[RequestErrorWidget(null, msg: "功能开发中")],
  29. ),
  30. ));
  31. }
  32. }