You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
813 B
32 lines
813 B
3 years ago
|
import 'package:bytedesk_kefu/blocs/leavemsg_bloc/leavemsg_bloc.dart';
|
||
|
import 'package:bytedesk_kefu/ui/leavemsg/page/leavemsg_page.dart';
|
||
|
import 'package:flutter/material.dart';
|
||
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
||
|
|
||
|
class LeaveMsgProvider extends StatelessWidget {
|
||
|
final String? wid;
|
||
|
final String? aid;
|
||
|
final String? type;
|
||
|
final String? tip;
|
||
|
const LeaveMsgProvider(
|
||
|
{Key? key,
|
||
|
@required this.wid,
|
||
|
@required this.aid,
|
||
|
@required this.type,
|
||
|
@required this.tip})
|
||
|
: super(key: key);
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return BlocProvider(
|
||
|
create: (BuildContext context) => LeaveMsgBloc(),
|
||
|
child: LeaveMsgPage(
|
||
|
wid: this.wid,
|
||
|
aid: this.aid,
|
||
|
type: this.type,
|
||
|
tip: this.tip,
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|