-
Notifications
You must be signed in to change notification settings - Fork 12
/
no_more_news_card_widget.dart
56 lines (54 loc) · 1.88 KB
/
no_more_news_card_widget.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
class NoMoreNewsCardWidget extends StatelessWidget {
const NoMoreNewsCardWidget({super.key});
@override
Widget build(BuildContext context) {
return Column(
children: [
const SizedBox(height: 16),
const Padding(
padding: EdgeInsets.symmetric(horizontal: 16),
child: Divider(),
),
const SizedBox(height: 16),
Card(
shape:
RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)),
child: Padding(
padding: const EdgeInsets.fromLTRB(16, 16, 16, 16),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: [
Container(
padding: const EdgeInsets.fromLTRB(0, 8, 8, 8),
child: Row(
children: [
const Icon(Icons.check, color: Colors.blue, size: 40),
const SizedBox(width: 16),
Flexible(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(AppIntl.of(context)!.news_no_more_card_title,
style: const TextStyle(fontSize: 24)),
const SizedBox(height: 16),
Text(
AppIntl.of(context)!.news_no_more_card,
textAlign: TextAlign.justify,
),
],
),
),
],
),
),
],
),
),
),
],
);
}
}