Skip to content

Commit a48115a

Browse files
committed
gfshimmer component completed
1 parent 0c3b0ad commit a48115a

File tree

5 files changed

+11
-16
lines changed

5 files changed

+11
-16
lines changed

example/lib/main_temp.dart

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,13 +232,7 @@ class _MyHomePageState extends State<MyHomePage>
232232
gradient: LinearGradient(
233233
begin: Alignment.bottomRight,
234234
end: Alignment.centerLeft,
235-
stops: const <double>[
236-
0,
237-
0.3,
238-
0.6,
239-
0.9,
240-
1
241-
],
235+
stops: const <double>[0, 0.3, 0.6, 0.9, 1],
242236
colors: [
243237
Colors.teal[100],
244238
Colors.teal[200],

lib/components/appbar/gf_appbar.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,12 @@ class _GFAppBarState extends State<GFAppBar> {
321321
IconThemeData actionsIconTheme = widget.actionsIconTheme ??
322322
appBarTheme.actionsIconTheme ??
323323
overallIconTheme;
324-
TextStyle centerStyle = widget.textTheme?.headline ??
325-
appBarTheme.textTheme?.headline ??
326-
theme.primaryTextTheme.headline;
327-
TextStyle sideStyle = widget.textTheme?.body1 ??
328-
appBarTheme.textTheme?.body1 ??
329-
theme.primaryTextTheme.body1;
324+
TextStyle centerStyle = widget.textTheme?.headline5 ??
325+
appBarTheme.textTheme?.headline5 ??
326+
theme.primaryTextTheme.headline5;
327+
TextStyle sideStyle = widget.textTheme?.bodyText2 ??
328+
appBarTheme.textTheme?.bodyText2 ??
329+
theme.primaryTextTheme.bodyText2;
330330

331331
if (widget.toolbarOpacity != 1.0) {
332332
final double opacity = const Interval(

lib/components/avatar/gf_avatar.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class GFAvatar extends StatelessWidget {
8787
final Color foregroundColor = this.foregroundColor;
8888
assert(debugCheckHasMediaQuery(context));
8989
final ThemeData theme = Theme.of(context);
90-
TextStyle textStyle = theme.primaryTextTheme.subtitle.copyWith(
90+
TextStyle textStyle = theme.primaryTextTheme.subtitle2.copyWith(
9191
color: foregroundColor,
9292
);
9393
Color effectiveBackgroundColor = backgroundColor;

lib/components/shimmer/gf_shimmer.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ class _GFShimmer extends SingleChildRenderObjectWidget {
168168
}
169169

170170
class GFShimmerFilter extends RenderProxyBox {
171-
GFShimmerFilter({this.value, this.direction, this.gradient, this.showShimmerEffect})
171+
GFShimmerFilter(
172+
{this.value, this.direction, this.gradient, this.showShimmerEffect})
172173
: gradientPaint = Paint()..blendMode = BlendMode.srcIn;
173174

174175
/// Constructs an empty [Paint] object with all fields initialized to their defaults.

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
bname: getflutter
1+
name: getflutter
22
description: GetFlutter is open source libraries that come with pre-build 1000+ UI components. It makes development faster & more enjoyable. You can customize the component as per your need.
33
version: 1.0.7
44
#author: GetFlutter <[email protected]>

0 commit comments

Comments
 (0)