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.
37 lines
768 B
37 lines
768 B
import 'package:dating_touchme_app/provide/user_info.dart';
|
|
import 'package:dating_touchme_app/utils/storage.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:provider/provider.dart';
|
|
|
|
class LivePage extends StatefulWidget {
|
|
const LivePage({super.key});
|
|
|
|
@override
|
|
State<LivePage> createState() => _LivePageState();
|
|
}
|
|
|
|
class _LivePageState extends State<LivePage> {
|
|
|
|
int nowNum = 0;
|
|
String nowToken = "";
|
|
|
|
@override
|
|
void initState() {
|
|
getData();
|
|
super.initState();
|
|
}
|
|
|
|
getData() async {
|
|
nowNum = Provider.of<UserInfo>(context, listen: false).current;
|
|
nowToken = await Storage().getStorage("token");
|
|
setState(() {
|
|
|
|
});
|
|
}
|
|
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Text("直播页面");
|
|
}
|
|
}
|