refactor: improve styling and layout in authentication and connection issue pages
- Removed unused flutter_animate dependency to streamline the codebase. - Adjusted container dimensions and padding in the connection issue page for better layout consistency. - Updated spacing values and text styles to enhance readability and align with the overall theme. - Refined border radius and background colors for improved aesthetics in various components. - Enhanced the user interface by ensuring consistent styling across authentication and connection issue pages.
This commit is contained in:
@@ -598,7 +598,7 @@ class _PaletteOption extends StatelessWidget {
|
||||
|
||||
return InkWell(
|
||||
onTap: onSelect,
|
||||
borderRadius: BorderRadius.circular(AppBorderRadius.md),
|
||||
borderRadius: BorderRadius.circular(AppBorderRadius.small),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: Spacing.sm),
|
||||
child: Row(
|
||||
@@ -607,7 +607,7 @@ class _PaletteOption extends StatelessWidget {
|
||||
Icon(
|
||||
isSelected ? Icons.radio_button_checked : Icons.radio_button_off,
|
||||
color: isSelected ? theme.buttonPrimary : theme.iconSecondary,
|
||||
size: IconSize.md,
|
||||
size: IconSize.small,
|
||||
),
|
||||
const SizedBox(width: Spacing.sm),
|
||||
Expanded(
|
||||
@@ -635,7 +635,7 @@ class _PaletteOption extends StatelessWidget {
|
||||
child: Icon(
|
||||
Icons.check_circle,
|
||||
color: theme.buttonPrimary,
|
||||
size: IconSize.sm,
|
||||
size: IconSize.small,
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -674,14 +674,14 @@ class _PaletteColorDot extends StatelessWidget {
|
||||
final theme = context.conduitTheme;
|
||||
return Container(
|
||||
margin: const EdgeInsets.only(right: Spacing.xs),
|
||||
width: 20,
|
||||
height: 20,
|
||||
width: 18,
|
||||
height: 18,
|
||||
decoration: BoxDecoration(
|
||||
color: color,
|
||||
shape: BoxShape.circle,
|
||||
border: Border.all(
|
||||
color: theme.dividerColor.withValues(alpha: 0.4),
|
||||
width: 1.2,
|
||||
color: theme.dividerColor.withValues(alpha: 0.3),
|
||||
width: BorderWidth.thin,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -3,7 +3,6 @@ import 'package:flutter/services.dart';
|
||||
import '../../../shared/theme/theme_extensions.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_animate/flutter_animate.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:package_info_plus/package_info_plus.dart';
|
||||
import 'package:url_launcher/url_launcher_string.dart';
|
||||
@@ -306,11 +305,7 @@ class ProfilePage extends ConsumerWidget {
|
||||
Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
UserAvatar(
|
||||
size: 56,
|
||||
imageUrl: avatarUrl,
|
||||
fallbackText: initial,
|
||||
),
|
||||
UserAvatar(size: 56, imageUrl: avatarUrl, fallbackText: initial),
|
||||
const SizedBox(width: Spacing.md),
|
||||
Expanded(
|
||||
child: Column(
|
||||
@@ -1187,7 +1182,8 @@ class _DefaultModelBottomSheetState
|
||||
fontWeight: FontWeight.w400,
|
||||
),
|
||||
),
|
||||
] else if (model.isMultimodal || _modelSupportsReasoning(model)) ...[
|
||||
] else if (model.isMultimodal ||
|
||||
_modelSupportsReasoning(model)) ...[
|
||||
const SizedBox(height: Spacing.xs),
|
||||
Row(
|
||||
children: [
|
||||
|
||||
Reference in New Issue
Block a user