import 'package:flutter/material.dart'; import 'package:routemaster/routemaster.dart'; class RoomPage extends StatefulWidget { final String server; final String tag; final String page; const RoomPage(this.server, this.tag, {super.key, this.page="list"}); @override State createState() => _RoomPageState(); } class _RoomPageState extends State { @override void initState() { super.initState(); // TODO: fetch room data // from somewhere } @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text('Room name'), leading: IconButton( onPressed: () { Routemaster.of(context).history.back(); }, icon: const Icon(Icons.arrow_back), tooltip: "Go back", ), ), floatingActionButton: FloatingActionButton.extended( onPressed: () => {}, label: Text('Add'), icon: const Icon(Icons.add)), ); } }