part of bai_dict;


class BaiDictPage extends StatefulWidget {
  final String keyword;
  const BaiDictPage({
    Key? key,
    required this.keyword
  }) : super(key: key);

  @override
  State<BaiDictPage> createState() => _BaiKePageState();
}

class _BaiKePageState extends State<BaiDictPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        centerTitle: false,
        title: Text(widget.keyword,style: TextStyle(fontSize: 14.w,fontWeight: Fonts.medium,color: Colours.c3),),
      ),
      body: InAppWebView(
        initialUrlRequest: URLRequest(
          url: Uri.parse('https://hanyu.baidu.com/hanyu-page/zici/s?from=aladdin&query=${widget.keyword}&srcid=51368&wd=${widget.keyword}&ptype=zici'),
        ),
      ),
    );
  }
}