started work on the flashcards
This commit is contained in:
@@ -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: [
|
||||||
|
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user