-
Notifications
You must be signed in to change notification settings - Fork 42
/
example_animated.dart
43 lines (40 loc) · 1.52 KB
/
example_animated.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
import 'package:flutter/material.dart';
import 'package:ready_to_use_widgets/atomic/custom_animated/item_card_widget.dart';
import 'package:ready_to_use_widgets/core/init/constants/color_constant.dart';
class CustomAnimated extends StatefulWidget {
const CustomAnimated({Key? key}) : super(key: key);
@override
State<CustomAnimated> createState() => _CustomAnimatedState();
}
class _CustomAnimatedState extends State<CustomAnimated> {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: ColorConstants.white,
appBar: AppBar(title: const Text('İşlerim')),
body: Column(
children: [
ItemCardWidget(
buttons: [
ItemCardButton(buttonText: 'İşi Tamamla', onPressed: () {}),
ItemCardButton(
buttonText: 'Detay',
isPrimary: false,
onPressed: () {},
backgroundColor: ColorConstants.steelGray),
],
cardLines: const [
CardLine(title: 'Title', value: 'Value', index: 0),
CardLine(title: 'Title', value: 'Value', index: 0),
CardLine(title: 'Title', value: 'Value', index: 0),
CardLine(title: 'Title', value: 'Value', index: 0),
CardLine(title: 'Title', value: 'Value', index: 0),
CardLine(title: 'Title', value: 'Value', index: 0),
CardLine(title: 'Title', value: 'Value', index: 0),
],
),
],
),
);
}
}