import 'package:flutter/material.dart';标签:test1,const,package,dart,5.24,import,page From: https://www.cnblogs.com/kongxiangzeng/p/18246572
import 'package:test1/page/picture.dart';
import 'package:test1/page/record_column.dart';
import 'package:test1/page/video.dart'; // 导入video1页面
import 'package:test1/page/record_column.dart';
import '../Do/UserDao.dart';
import '../component/container.dart';
import '../component/drawer.dart';
import 'openAL.dart';
import 'insert_column.dart';
import 'login.dart';
class ColumnPage1 extends StatelessWidget {
const ColumnPage1({Key? key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: '心语航标',
theme: ThemeData(
primarySwatch: Colors.purple,
),
home: const ColumnScreen1(),
);
}
}
class ColumnScreen1 extends StatelessWidget {
const ColumnScreen1({Key? key});
@override
Widget build(BuildContext context) {
return DefaultTabController(
length: 3,
child: Scaffold(
appBar: AppBar(
title: const Text('专栏'),
bottom: const TabBar(
tabs: [
Tab(icon: Icon(Icons.home), text: '视频'),
Tab(icon: Icon(Icons.article), text: '精品图文'),
Tab(icon: Icon(Icons.contacts), text: '001'),
],
),
),
body: TabBarView(
children: <Widget>[
Video1(),
Picture1(),
InsertColumn(),
],
),
),
);
}
}
void main() {
runApp(ColumnPage1());
}