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