| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- import 'package:flutter/material.dart';
- import '../styles/colors.dart';
- import 'dart:ui';
- class OpenRoom extends StatefulWidget {
- @override
- OpenRoomState createState() => OpenRoomState();
- }
- class OpenRoomState extends State<OpenRoom> {
- @override
- Widget build(BuildContext context) {
- // TODO: implement build
- return new Scaffold(
- appBar: AppBar(
- backgroundColor: PRIMARY_COLOR,
- title: Text('创建官方房间'),
- centerTitle: true,
- elevation: 0,
- actions: <Widget>[
- Container(
- width: 60,
- child: FlatButton(
- highlightColor: PRIMARY_COLOR,
- padding: EdgeInsets.only(right: 0),
- child: Text('规则',
- style: TextStyle(color: Colors.white, fontSize: 13)),
- onPressed: () {},
- ),
- )
- ],
- ),
- body: RefreshIndicator(
- color: PRIMARY_COLOR,
- backgroundColor: BG_COLOR,
- onRefresh: () async {
- await new Future.delayed(const Duration(seconds: 1));
- },
- child: Container(
- color: BG_COLOR,
- ),
- ));
- }
-
- }
|