Skip to content

Commit d6f24ac

Browse files
committed
different types of list_item is in progress
1 parent 4b593ed commit d6f24ac

2 files changed

Lines changed: 67 additions & 12 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.example.example
2+
3+
import androidx.annotation.NonNull;
4+
import io.flutter.embedding.android.FlutterActivity
5+
import io.flutter.embedding.engine.FlutterEngine
6+
import io.flutter.plugins.GeneratedPluginRegistrant
7+
8+
class MainActivity: FlutterActivity() {
9+
override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
10+
GeneratedPluginRegistrant.registerWith(flutterEngine);
11+
}
12+
}

example/lib/main.dart

Lines changed: 55 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import 'package:ui_kit/components/toggle/gf_toggle.dart';
3030
import 'package:ui_kit/types/gf_toggle_type.dart';
3131
import 'package:flutter/cupertino.dart';
3232
import 'package:ui_kit/components/header/gf_header.dart';
33+
import 'package:ui_kit/position/gf_position.dart';
3334

3435
import 'package:ui_kit/components/toast/gf_toast.dart';
3536

@@ -82,21 +83,62 @@ class _MyHomePageState extends State<MyHomePage> {
8283
title: Text(widget.title),
8384
),
8485

85-
body: Column(
86+
body:
87+
88+
SingleChildScrollView(
89+
child: Column(
8690
children: <Widget>[
91+
92+
// GFCard(
93+
//// boxFit: BoxFit.cover,
94+
//// colorFilter: new ColorFilter.mode(
95+
//// Colors.black.withOpacity(0.67), BlendMode.darken),
96+
// image: Image.asset("lib/assets/food.jpeg"),
97+
//// imageOverlay: AssetImage("lib/assets/food.jpeg"),
98+
// titlePosition: GFPosition.end,
99+
// title: GFListItem(
100+
// avatar: GFAvatar(
101+
// child: Text("tb"),
102+
// ),
103+
// title: Text(
104+
// 'title',
105+
// style: TextStyle(color: Colors.grey),
106+
// ),
107+
// subTitle: Text(
108+
// 'subtitle',
109+
// style: TextStyle(color: Colors.grey),
110+
// ),
111+
// icon: GFIconButton(
112+
// onPressed: null,
113+
// icon: Icon(Icons.favorite_border),
114+
// type: GFType.transparent,
115+
// ),
116+
// ),
117+
// ),
118+
119+
//
120+
// GFCard(
121+
// title: GFListItem(
122+
// title: Text('dcrfvjn'),
123+
// subTitle: Text('fghjk'),
124+
//
125+
// ),
126+
//
127+
// ),
128+
87129
GFListItem(
88130
avatar: GFAvatar(),
89131

90132
title: GFHeader(
91-
text: 'cvbn',
92-
// showDivider: false,
93-
backgroundImage: NetworkImage('https://cdn.pixabay.com/photo/2017/12/03/18/04/christmas-balls-2995437_960_720.jpg'),
133+
text: 'HEADER',
134+
135+
// backgroundImage: NetworkImage('https://cdn.pixabay.com/photo/2017/12/03/18/04/christmas-balls-2995437_960_720.jpg'),
94136
),
95-
subTitle: Text('cfghjk'),
137+
subTitle: Text('Sub Header'),
96138
),
97-
Container(
98-
margin: EdgeInsets.only(top:10),
99-
child: GFToast(
139+
Container(
140+
margin: EdgeInsets.only(top:10),
141+
child: GFToast(
100142
//
101143
//
102144
//
@@ -105,9 +147,9 @@ class _MyHomePageState extends State<MyHomePage> {
105147
// type: GFType.outline,
106148
// text: 'Accept',
107149
// ),
108-
text: 'Marked as Favorite.',
150+
text: 'Marked as Favorite.',
151+
),
109152
),
110-
),
111153
Container(
112154
margin: EdgeInsets.only(left: 10, right: 10, top: 10, bottom: 10),
113155
child: Row(
@@ -149,10 +191,10 @@ class _MyHomePageState extends State<MyHomePage> {
149191
// icon: Icon(Icons.image, color: Colors.white,),
150192
text: 'GET FLUTTER HEADER',
151193
//textColor: Colors.red,
152-
dividerWidth: 20,
194+
dividerWidth: 20,
153195
//backgroundImage: NetworkImage('https://cdn.pixabay.com/photo/2017/12/03/18/04/christmas-balls-2995437_960_720.jpg'),
154196
//showDivider: false,
155-
197+
156198
// textColor: Colors.black,
157199
// dividerColor: Colors.red,
158200
//dividerAlignment: Alignment.center,
@@ -167,6 +209,7 @@ dividerWidth: 20,
167209

168210
],
169211
),
212+
)
170213
// body: DefaultTabController(
171214
// length: 3,
172215
// child: Scaffold(

0 commit comments

Comments
 (0)