Correções em dashboard aluno
This commit is contained in:
@@ -24,36 +24,30 @@ class QuickAccessWidget extends StatelessWidget {
|
||||
Row(
|
||||
children: [
|
||||
// Tutor IA Card (Primary)
|
||||
Expanded(
|
||||
flex: 3,
|
||||
child: _buildTutorIACard(context),
|
||||
),
|
||||
Expanded(flex: 3, child: _buildTutorIACard(context)),
|
||||
const SizedBox(width: 16),
|
||||
// Quiz Card (Secondary)
|
||||
Expanded(
|
||||
flex: 2,
|
||||
child: _buildQuizCard(context),
|
||||
),
|
||||
Expanded(flex: 2, child: _buildQuizCard(context)),
|
||||
],
|
||||
),
|
||||
],
|
||||
).animate().slideY(
|
||||
)
|
||||
.animate()
|
||||
.slideY(
|
||||
duration: const Duration(milliseconds: 800),
|
||||
curve: Curves.easeOut,
|
||||
).then(delay: const Duration(milliseconds: 200));
|
||||
)
|
||||
.then(delay: const Duration(milliseconds: 200));
|
||||
}
|
||||
|
||||
Widget _buildTutorIACard(BuildContext context) {
|
||||
return Container(
|
||||
height: 135,
|
||||
height: 150,
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
gradient: const LinearGradient(
|
||||
begin: Alignment.topLeft,
|
||||
end: Alignment.bottomRight,
|
||||
colors: [
|
||||
const Color(0xFF82C9BD),
|
||||
const Color(0xFF6BA8A0),
|
||||
],
|
||||
colors: [Color(0xFF82C9BD), Color(0xFF6BA8A0)],
|
||||
),
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
boxShadow: [
|
||||
@@ -78,7 +72,7 @@ class QuickAccessWidget extends StatelessWidget {
|
||||
Row(
|
||||
children: [
|
||||
Container(
|
||||
padding: const EdgeInsets.all(10),
|
||||
padding: const EdgeInsets.all(7),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withOpacity(0.2),
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
@@ -91,7 +85,10 @@ class QuickAccessWidget extends StatelessWidget {
|
||||
),
|
||||
const Spacer(),
|
||||
Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 4),
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 10,
|
||||
vertical: 4,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: const Color(0xFFF68D2D),
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
@@ -119,7 +116,7 @@ class QuickAccessWidget extends StatelessWidget {
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
SizedBox(height: 4),
|
||||
//SizedBox(height: 4),
|
||||
Text(
|
||||
'Assistente de estudos',
|
||||
maxLines: 1,
|
||||
@@ -137,22 +134,22 @@ class QuickAccessWidget extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
).animate().scale(
|
||||
)
|
||||
.animate()
|
||||
.scale(
|
||||
duration: const Duration(milliseconds: 600),
|
||||
curve: Curves.elasticOut,
|
||||
).then(delay: const Duration(milliseconds: 100));
|
||||
)
|
||||
.then(delay: const Duration(milliseconds: 100));
|
||||
}
|
||||
|
||||
Widget _buildQuizCard(BuildContext context) {
|
||||
return Container(
|
||||
height: 135,
|
||||
height: 150,
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white,
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
border: Border.all(
|
||||
color: const Color(0xFFE2E8F0),
|
||||
width: 1,
|
||||
),
|
||||
border: Border.all(color: const Color(0xFFE2E8F0), width: 1),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.black.withOpacity(0.05),
|
||||
@@ -167,7 +164,7 @@ class QuickAccessWidget extends StatelessWidget {
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
onTap: () => context.go('/quiz'),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(20),
|
||||
padding: const EdgeInsets.all(14),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
@@ -199,7 +196,7 @@ class QuickAccessWidget extends StatelessWidget {
|
||||
SizedBox(height: 4),
|
||||
Text(
|
||||
'Teste conhecimentos',
|
||||
maxLines: 1,
|
||||
maxLines: 2,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: TextStyle(
|
||||
color: Color(0xFF718096),
|
||||
@@ -214,9 +211,12 @@ class QuickAccessWidget extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
).animate().scale(
|
||||
)
|
||||
.animate()
|
||||
.scale(
|
||||
duration: const Duration(milliseconds: 600),
|
||||
curve: Curves.elasticOut,
|
||||
).then(delay: const Duration(milliseconds: 200));
|
||||
)
|
||||
.then(delay: const Duration(milliseconds: 200));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user