Skip to content

Commit 00067af

Browse files
committed
demo-app is in progress
1 parent 130382b commit 00067af

10 files changed

Lines changed: 1662 additions & 694 deletions

File tree

demo_app/lib/main.dart

Lines changed: 2 additions & 377 deletions
Large diffs are not rendered by default.

demo_app/lib/screens/avatars.dart

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import 'package:flutter/cupertino.dart';
2+
import 'package:flutter/material.dart';
3+
import 'package:ui_kit/components/avatar/gf_avatar.dart';
4+
import 'package:ui_kit/shape/gf_shape.dart';
5+
6+
class Avatars extends StatefulWidget {
7+
@override
8+
_AvatarsState createState() => _AvatarsState();
9+
}
10+
11+
class _AvatarsState extends State<Avatars> {
12+
@override
13+
Widget build(BuildContext context) {
14+
return Scaffold(
15+
appBar: AppBar(
16+
title: Text('Avatar', style: TextStyle(fontSize: 14),),
17+
),
18+
body: Container(
19+
margin: EdgeInsets.all(20),
20+
child: Row(
21+
crossAxisAlignment: CrossAxisAlignment.center,
22+
mainAxisAlignment: MainAxisAlignment.spaceBetween,
23+
children: <Widget>[
24+
GFAvatar(
25+
child: Icon(Icons.face)
26+
),
27+
GFAvatar(
28+
shape: GFShape.square,
29+
child: Icon(Icons.face)
30+
),
31+
GFAvatar(
32+
shape: GFShape.standard,
33+
child: Icon(Icons.face)
34+
)
35+
],
36+
),
37+
)
38+
);
39+
}
40+
}

0 commit comments

Comments
 (0)