Introduce a new profit analysis page featuring a monthly calendar view that displays daily profit/loss data. The page includes navigation controls to switch between months, loading states, and responsive design that adapts to both light and dark themes. Implements data fetching from asset service and visual indicators for profit trends.
37 lines
1.0 KiB
Dart
37 lines
1.0 KiB
Dart
import 'package:flutter/material.dart';
|
|
import '../../../../core/theme/app_color_scheme.dart';
|
|
import '../../../../core/theme/app_spacing.dart';
|
|
import '../../../../core/theme/app_theme.dart';
|
|
|
|
/// 退出登录按钮
|
|
class LogoutButton extends StatelessWidget {
|
|
final VoidCallback onLogout;
|
|
const LogoutButton({super.key, required this.onLogout});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return GestureDetector(
|
|
onTap: onLogout,
|
|
child: Container(
|
|
width: double.infinity,
|
|
height: 48,
|
|
decoration: BoxDecoration(
|
|
color: AppColorScheme.down.withOpacity(0.05),
|
|
borderRadius: BorderRadius.circular(AppRadius.lg),
|
|
border: Border.all(
|
|
color: AppColorScheme.down.withOpacity(0.15),
|
|
),
|
|
),
|
|
child: Center(
|
|
child: Text(
|
|
'退出登录',
|
|
style: AppTextStyles.headlineMedium(context).copyWith(
|
|
color: AppColorScheme.down,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|