Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ui_kit_example
# getflutter_example

A new Flutter project.

Expand Down
2 changes: 1 addition & 1 deletion example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ android {

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.ui_kit_example"
applicationId "com.example.getflutter_example"
minSdkVersion 16
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
Expand Down
2 changes: 1 addition & 1 deletion example/android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.ui_kit_example">
package="com.example.getflutter_example">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
Expand Down
4 changes: 2 additions & 2 deletions example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.ui_kit_example">
package="com.example.getflutter_example">
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
calls FlutterMain.startInitialization(this); in its onCreate method.
In most cases you can leave this as-is, but you if you want to provide
additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. -->
<application
android:name="io.flutter.app.FlutterApplication"
android:label="ui_kit_example"
android:label="getflutter_example"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.ui_kit_example
package com.example.getflutter_example

import androidx.annotation.NonNull;
import io.flutter.embedding.android.FlutterActivity
Expand Down
2 changes: 1 addition & 1 deletion example/android/app/src/profile/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.ui_kit_example">
package="com.example.getflutter_example">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
Expand Down
2 changes: 1 addition & 1 deletion example/ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>ui_kit_example</string>
<string>getflutter_example</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
Expand Down
148 changes: 74 additions & 74 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
import 'package:flutter/material.dart';
import 'package:ui_kit/colors/gf_color.dart';
import 'package:ui_kit/components/button/gf_button.dart';
import 'package:ui_kit/components/badge/gf_button_badge.dart';
import 'package:ui_kit/components/avatar/gf_avatar.dart';
import 'package:ui_kit/components/badge/gf_badge.dart';
import 'package:ui_kit/components/list/gf_list.dart';
import 'package:ui_kit/components/tabs/gf_segment_tabs.dart';
import 'package:ui_kit/size/gf_size.dart';
import 'package:ui_kit/types/gf_type.dart';
import 'package:ui_kit/shape/gf_button_shape.dart';
import 'package:ui_kit/shape/gf_badge_shape.dart';
import 'package:getflutter/colors/gf_color.dart';
import 'package:getflutter/components/button/gf_button.dart';
import 'package:getflutter/components/badge/gf_button_badge.dart';
import 'package:getflutter/components/avatar/gf_avatar.dart';
import 'package:getflutter/components/badge/gf_badge.dart';
// import 'package:getflutter/components/list/gf_list.dart';
import 'package:getflutter/components/tabs/gf_segment_tabs.dart';
import 'package:getflutter/size/gf_size.dart';
import 'package:getflutter/types/gf_type.dart';
import 'package:getflutter/shape/gf_button_shape.dart';
import 'package:getflutter/shape/gf_badge_shape.dart';
import 'package:flutter/cupertino.dart';
import 'package:ui_kit/components/tabs/gf_tabs.dart';
import 'package:ui_kit/components/drawer/gf_drawer.dart';
import 'package:ui_kit/components/drawer/gf_drawer_header.dart';
import 'package:ui_kit/components/toast/gf_toast.dart';
import 'package:ui_kit/components/appbar/gf_appbar.dart';
import 'package:ui_kit/components/tabs/gf_tabBarView.dart';
import 'package:ui_kit/components/button/gf_icon_button.dart';
import 'package:ui_kit/components/button/gf_social_button.dart';
import 'package:ui_kit/components/carousel/gf_carousel.dart';
import 'package:ui_kit/components/carousel/gf_items_carousel.dart';
import 'package:ui_kit/shape/gf_avatar_shape.dart';
import 'package:ui_kit/components/card/gf_card.dart';
import 'package:ui_kit/components/image/gf_image_overlay.dart';
import 'package:ui_kit/components/list_tile/gf_list_tile.dart';
import 'package:ui_kit/position/gf_position.dart';
import 'package:ui_kit/components/button/gf_button_bar.dart';
import 'package:ui_kit/components/badge/gf_icon_badge.dart';
import 'package:ui_kit/shape/gf_icon_button_shape.dart';
import 'package:ui_kit/components/tabs/gf_tabBar.dart';
import 'package:ui_kit/components/typography/gf_typography.dart';
import 'package:ui_kit/types/gf_typography_type.dart';
import 'package:ui_kit/components/toast/gf_floating_widget.dart';
import 'package:ui_kit/components/toggle/gf_toggle.dart';
import 'package:ui_kit/types/gf_toggle_type.dart';
import 'package:getflutter/components/tabs/gf_tabs.dart';
import 'package:getflutter/components/drawer/gf_drawer.dart';
import 'package:getflutter/components/drawer/gf_drawer_header.dart';
import 'package:getflutter/components/toast/gf_toast.dart';
import 'package:getflutter/components/appbar/gf_appbar.dart';
import 'package:getflutter/components/tabs/gf_tabBarView.dart';
import 'package:getflutter/components/button/gf_icon_button.dart';
import 'package:getflutter/components/button/gf_social_button.dart';
import 'package:getflutter/components/carousel/gf_carousel.dart';
import 'package:getflutter/components/carousel/gf_items_carousel.dart';
import 'package:getflutter/shape/gf_avatar_shape.dart';
import 'package:getflutter/components/card/gf_card.dart';
import 'package:getflutter/components/image/gf_image_overlay.dart';
import 'package:getflutter/components/list_tile/gf_list_tile.dart';
import 'package:getflutter/position/gf_position.dart';
import 'package:getflutter/components/button/gf_button_bar.dart';
import 'package:getflutter/components/badge/gf_icon_badge.dart';
import 'package:getflutter/shape/gf_icon_button_shape.dart';
import 'package:getflutter/components/tabs/gf_tabBar.dart';
import 'package:getflutter/components/typography/gf_typography.dart';
import 'package:getflutter/types/gf_typography_type.dart';
import 'package:getflutter/components/toast/gf_floating_widget.dart';
import 'package:getflutter/components/toggle/gf_toggle.dart';
import 'package:getflutter/types/gf_toggle_type.dart';

final List<String> imageList = [
"https://cdn.pixabay.com/photo/2017/12/03/18/04/christmas-balls-2995437_960_720.jpg",
Expand All @@ -51,12 +51,12 @@ class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'UI_KIT_EXAMPLE',
title: 'getflutter_EXAMPLE',
theme: ThemeData(
primarySwatch: Colors.blue,
),
debugShowCheckedModeBanner: false,
home: MyHomePage(title: 'UI_KIT_EXAMPLE'),
home: MyHomePage(title: 'getflutter_EXAMPLE'),
);
}
}
Expand Down Expand Up @@ -173,21 +173,18 @@ class _MyHomePageState extends State<MyHomePage>
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[

Container(
height: 130.0,
width: 105.0,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8.0),
gradient: LinearGradient(
begin: FractionalOffset.bottomLeft,
end: FractionalOffset.topRight,
colors: [
const Color(0x5a0b486b),
const Color(0xFFF56217),
]
)
),
borderRadius: BorderRadius.circular(8.0),
gradient: LinearGradient(
begin: FractionalOffset.bottomLeft,
end: FractionalOffset.topRight,
colors: [
const Color(0x5a0b486b),
const Color(0xFFF56217),
])),
),

GFCard(
Expand All @@ -200,7 +197,9 @@ class _MyHomePageState extends State<MyHomePage>
SizedBox(
height: 10,
),
GFToggle(onChanged: null, value: null,
GFToggle(
onChanged: null,
value: null,
type: GFToggleType.ios,
)
],
Expand All @@ -215,11 +214,11 @@ class _MyHomePageState extends State<MyHomePage>
// children: <Widget>[
// Column(
// children: <Widget>[
GFTypography(
text: 'GF Header Typo1',
type: GFTypographyType.typo1,
GFTypography(
text: 'GF Header Typo1',
type: GFTypographyType.typo1,
// showDivider: false,
),
),
// GFTypography(
// text: 'GF Header Typo2',
// type: GFTypographyType.typo2,
Expand Down Expand Up @@ -409,7 +408,8 @@ class _MyHomePageState extends State<MyHomePage>
width: 200.0,
image: AssetImage("lib/assets/food.jpeg"),
boxFit: BoxFit.fill,
colorFilter: new ColorFilter.mode(Colors.black.withOpacity(0.67), BlendMode.darken),
colorFilter: new ColorFilter.mode(
Colors.black.withOpacity(0.67), BlendMode.darken),
shape: BoxShape.circle,
),
),
Expand All @@ -428,7 +428,6 @@ class _MyHomePageState extends State<MyHomePage>
// ))),
// ),


GFButtonBadge(
// boxShadow: BoxShadow(
// color: Colors.pink,
Expand Down Expand Up @@ -595,24 +594,20 @@ class _MyHomePageState extends State<MyHomePage>
// ]
// ),


GFItemsCarousel(
rowCount: 3,
children: imageList.map(
(url) {
return Container(
margin: EdgeInsets.all(5.0),
child: ClipRRect(
borderRadius: BorderRadius.all(Radius.circular(5.0)),
child: Image.network(
url,
fit: BoxFit.cover,
width: 1000.0
),
),
);
},
).toList(),
rowCount: 3,
children: imageList.map(
(url) {
return Container(
margin: EdgeInsets.all(5.0),
child: ClipRRect(
borderRadius: BorderRadius.all(Radius.circular(5.0)),
child:
Image.network(url, fit: BoxFit.cover, width: 1000.0),
),
);
},
).toList(),
),
//
// GFCarousel(
Expand Down Expand Up @@ -756,8 +751,13 @@ class _MyHomePageState extends State<MyHomePage>

GFCard(
boxFit: BoxFit.fill,
colorFilter: new ColorFilter.mode(Colors.black.withOpacity(0.67), BlendMode.darken),
image: Image.asset("lib/assets/img.png", fit: BoxFit.fitWidth, width: 400.0,),
colorFilter: new ColorFilter.mode(
Colors.black.withOpacity(0.67), BlendMode.darken),
image: Image.asset(
"lib/assets/img.png",
fit: BoxFit.fitWidth,
width: 400.0,
),
// imageOverlay: AssetImage("lib/assets/food.jpeg"),
titlePosition: GFPosition.end,
title: GFListTile(
Expand Down
14 changes: 7 additions & 7 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
getflutter:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "0.0.1-pre.3"
image:
dependency: transitive
description:
Expand Down Expand Up @@ -177,13 +184,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.6"
ui_kit:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "0.0.1"
vector_math:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ environment:
dependencies:
flutter:
sdk: flutter
ui_kit:
getflutter:
path: ../

cupertino_icons: ^0.1.2
Expand All @@ -22,4 +22,4 @@ flutter:
uses-material-design: true
assets:
- lib/assets/food.jpeg
- lib/assets/img.png
- lib/assets/img.png
2 changes: 1 addition & 1 deletion example/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="UTF-8">
<title>ui_kit_example</title>
<title>getflutter_example</title>
</head>
<body>
<script src="main.dart.js" type="application/javascript"></script>
Expand Down