import 'package:flutter/material.dart'; import 'package:twong/widgets/app_bar.dart'; import 'package:twong/config/protocols.dart'; class ProtocolPage extends StatefulWidget { final ProtocolType type; ProtocolPage(this.type, {Key key}):super(key: key); @override State createState() { return _ProtocolPageState(this.type); } } class _ProtocolPageState extends State { final ProtocolType type; _ProtocolPageState(this.type); @override Widget build(BuildContext context) { return Scaffold( appBar: DAppBar(Protocols.getTitle(type)), body: Container( child: Center(child: Text(Protocols.getType(type))), ), ); } }