started work on the flashcards

This commit is contained in:
Odweta
2026-03-23 12:27:55 +01:00
parent 1871dac2af
commit 3707bb0ea7
2 changed files with 32 additions and 3 deletions
+23 -1
View File
@@ -1,10 +1,32 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:frontend/provider/quote_provider.dart';
import 'package:frontend/model/quote.dart';
import 'package:provider/provider.dart';
import 'package:frontend/values/strings.dart';
import 'package:frontend/values/constants.dart';
class FlashcardsPage extends StatelessWidget { class FlashcardsPage extends StatelessWidget {
const FlashcardsPage({super.key}); const FlashcardsPage({super.key});
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return const Center(child: Text('flashcards! flip flip')); //return const Center(child: Text('flashcards! flip flip'));
final provider = Provider.of<QuoteProvider>(context);
return Card(
margin: const EdgeInsets.all(Constants.edgeInset),
child: Padding(
padding: const EdgeInsets.all(Constants.edgeInset),
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
],
),
),
);
} }
} }
+9 -2
View File
@@ -37,10 +37,17 @@ class ListPage extends StatelessWidget {
children: [ children: [
Center( Center(
child: Padding( child: Padding(
padding: const EdgeInsets.all(Constants.edgeInset), padding: const EdgeInsets.only(
left: Constants.edgeInset,
right: Constants.edgeInset,
top: Constants.edgeInset
),
child: Text( child: Text(
'${Strings.allQuotesCount} $quoteCount', '${Strings.allQuotesCount} $quoteCount',
style: TextStyle(fontSize: 18), style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.bold,
),
), ),
), ),
), ),