import 'package:flutter/material.dart';标签:test1,const,package,Icons,dart,5.13,import From: https://www.cnblogs.com/kongxiangzeng/p/18246553
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 ColumnPage extends StatelessWidget {
const ColumnPage({Key? key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: '心语航标',
theme: ThemeData(
primarySwatch: Colors.purple,
),
home: const ColumnScreen(),
);
}
}
class ColumnScreen extends StatelessWidget {
const ColumnScreen({Key? key});
@override
Widget build(BuildContext context) {
return DefaultTabController(
length: 3,
child: Scaffold(
appBar: AppBar(
bottom: const TabBar(
tabs: [
Tab(icon: Icon(Icons.home), text: '消息'),
Tab(icon: Icon(Icons.article), text: '帖子'),
Tab(icon: Icon(Icons.contacts), text: '通讯录'), // 修改图标为 contacts
],
),
),
body: TabBarView(
children: <Widget>[
const Text('data1'),
ColumnRecordsApp(),
InsertColumn(),
],
),
),
);
}
}
void main() {
runApp(ColumnPage());
}