Commit e257b297 by tanghuan

增加版本信息和版权信息

1 parent 97ac92bf
import 'package:appframe/bloc/web_cubit.dart'; import 'package:appframe/bloc/web_cubit.dart';
import 'package:appframe/config/constant.dart';
import 'package:appframe/config/locator.dart'; import 'package:appframe/config/locator.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_bloc/flutter_bloc.dart';
...@@ -71,17 +70,25 @@ class WebPage extends StatelessWidget { ...@@ -71,17 +70,25 @@ class WebPage extends StatelessWidget {
), ),
endDrawer: Drawer( endDrawer: Drawer(
width: MediaQuery.of(ctx).size.width * 0.8, width: MediaQuery.of(ctx).size.width * 0.8,
child: ListView(padding: EdgeInsets.zero, children: [ child: Column(children: [
DrawerHeader( DrawerHeader(
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xFF7691FA), color: Color(0xFF7691FA),
), ),
child: Align(
alignment: Alignment.centerLeft,
child: Text('设置', child: Text('设置',
style: TextStyle( style: TextStyle(
// color: Theme.of(ctx).colorScheme.onPrimary, // color: Theme.of(ctx).colorScheme.onPrimary,
fontSize: 24, fontSize: 24,
color: Colors.white, color: Colors.white,
))), ))),
),
Expanded(
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
ListTile( ListTile(
leading: const Icon(Icons.chat_bubble_outline), leading: const Icon(Icons.chat_bubble_outline),
title: const Text('消息测试'), title: const Text('消息测试'),
...@@ -131,6 +138,24 @@ class WebPage extends StatelessWidget { ...@@ -131,6 +138,24 @@ class WebPage extends StatelessWidget {
ctx.read<WebCubit>().logout(); ctx.read<WebCubit>().logout();
}, },
), ),
],
),
),
),
const Divider(),
Container(
width: double.infinity,
padding: const EdgeInsets.all(16.0),
child: Center(
child: Text(
'版权所有 © 2025',
style: TextStyle(
color: Colors.grey,
fontSize: 12,
),
),
),
),
])), ])),
body: Stack( body: Stack(
children: [ children: [
...@@ -201,7 +226,7 @@ class WebPage extends StatelessWidget { ...@@ -201,7 +226,7 @@ class WebPage extends StatelessWidget {
); );
}, },
listener: (context, state) { listener: (context, state) {
if(state.suggestUpgrade){ if (state.suggestUpgrade) {
context.read<WebCubit>().suggestUpgrade(context); context.read<WebCubit>().suggestUpgrade(context);
} else if (state.orientationCmdFlag) { } else if (state.orientationCmdFlag) {
context.read<WebCubit>().getOrientation(context); context.read<WebCubit>().getOrientation(context);
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!