import 'dart:ui'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import '../api/http.dart'; import 'common/browser.dart'; import 'widget/dialog.dart'; import 'widget/nav.dart'; import '../utils/cache_util.dart'; import '../utils/config_util.dart'; import '../utils/event_bus_util.dart'; import '../utils/pageutils.dart'; import '../utils/push_util.dart'; import '../utils/setting_util.dart'; import '../utils/string_util.dart'; import '../utils/ui_constant.dart'; import '../utils/ui_utils.dart'; import '../utils/user_util.dart'; import 'package:package_info/package_info.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: '视频收藏', theme: ThemeData(primaryColor: const Color(0xFFF5F5F5)), home: DemoPage(title: ''), ); } } class DemoPage extends StatefulWidget { DemoPage({Key? key, required this.title}) : super(key: key); // This widget is the home page of your application. It is stateful, meaning // that it has a State object (defined below) that contains fields that affect // how it looks. // This class is the configuration for the state. It holds the values (in this // case the title) provided by the parent (in this case the App widget) and // used by the build method of the State. Fields in a Widget subclass are // always marked "final". final String title; @override _DemoPageState createState() => _DemoPageState(); } class _DemoPageState extends State with SingleTickerProviderStateMixin { @override void initState() { super.initState(); } @override Widget build(BuildContext context) { return Scaffold( backgroundColor: const Color(0xFFF5F5F5), body: Flex( direction: Axis.vertical, children: [ TopNavBar(title: "我的收藏"), InkWell(onTap: (){ popPage(context); }, child: Text("结束页面"),) ], )); } }