/* * @Author : Linloir * @Date : 2022-03-05 20:41:41 * @LastEditTime : 2022-03-06 22:59:34 * @Description : Offline page */ import 'package:flutter/material.dart'; import 'package:wordle/event_bus.dart'; import 'package:wordle/validation_provider.dart'; import './display_pannel.dart'; class OfflinePage extends StatefulWidget { const OfflinePage({Key? key}) : super(key: key); @override State createState() => _OfflinePageState(); } class _OfflinePageState extends State { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( backgroundColor: Colors.white, elevation: 0.0, shadowColor: Colors.transparent, toolbarHeight: 80.0, titleTextStyle: const TextStyle( color: Colors.black, fontWeight: FontWeight.bold, fontSize: 20.0, ), title: const Text('WORDLE OFFLINE'), centerTitle: true, iconTheme: const IconThemeData(color: Colors.black), actions: [ IconButton( icon: const Icon(Icons.refresh_rounded), color: Colors.black, onPressed: (){ mainBus.emit(event: "NewGame", args: []); }, ) ], ), body: Container( child: const ValidationProvider( child: WordleDisplayWidget(), ), color: Colors.white, ), ); } }