-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from fe-homecredit-id/development
Development Naiso!
- Loading branch information
Showing
10 changed files
with
87 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,32 @@ | ||
# flutter_direct | ||
|
||
Design System for Home Credit Indonesia Tippers App. | ||
Flutter Direct is a Design System for Home Credit Indonesia Tippers App. | ||
|
||
## Getting Started | ||
## Usage | ||
|
||
This project is a starting point for a Dart | ||
[package](https://flutter.dev/developing-packages/), | ||
a library module containing code that can be shared easily across | ||
multiple Flutter or Dart projects. | ||
To use this plugin, add flutter_direct as a [dependency in your pubspec.yaml file](https://flutter.dev/docs/development/packages-and-plugins/using-packages). | ||
|
||
For help getting started with Flutter, view our | ||
[online documentation](https://flutter.dev/docs), which offers tutorials, | ||
samples, guidance on mobile development, and a full API reference. | ||
### Example | ||
|
||
|
||
Please see the example app of this plugin for a full example. | ||
|
||
```dart | ||
Container( | ||
height: 80, | ||
width: double.infinity, | ||
color: AtomicColor.primaryColor, | ||
child: Center( | ||
child: Text( | ||
"Secondary Color", | ||
style: TextStyle(color: Colors.white), | ||
)), | ||
), | ||
AtomicInput( | ||
keyValue: 'password', | ||
hintText: 'PASSWORD', | ||
inputType: InputType.Authentication, | ||
formType: FormType.Password, | ||
), | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
part of flutter_direct; | ||
|
||
class AtomicFontAppbar extends StatelessWidget { | ||
final String data; | ||
final String keyValue; | ||
final double size; | ||
final Color color; | ||
final FontWeight fontWeight; | ||
|
||
AtomicFontAppbar({ | ||
this.data, | ||
this.keyValue, | ||
this.size, | ||
this.color, | ||
this.fontWeight | ||
}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Text( | ||
data ?? 'null', | ||
key: Key(keyValue ?? ''), | ||
overflow: | ||
TextOverflow.ellipsis, | ||
textAlign: TextAlign.left, | ||
strutStyle: StrutStyle( | ||
height: 1.0, | ||
), | ||
textScaleFactor: 1.0, | ||
style: TextStyle( | ||
fontFamily: "Campton", | ||
fontSize: size ?? 18, | ||
color: color ?? Colors.green, | ||
fontWeight: fontWeight, | ||
), | ||
); | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters