Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
llswidget
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dart-package
llswidget
Commits
345e594d
Commit
345e594d
authored
Jul 23, 2021
by
Rizal Hermawan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat (lls_alert): add titleStyle and subtitleStyle to LLSAlertOptions. Story #1
parent
5d73fef8
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
17 deletions
+12
-17
.packages
+1
-1
example/.packages
+1
-1
example/lib/helpers/shared_method.dart
+0
-12
lib/src/components/alert/lls_alert.dart
+10
-3
No files found.
.packages
View file @
345e594d
...
...
@@ -3,7 +3,7 @@
#
# For more info see: https://dart.dev/go/dot-packages-deprecation
#
# Generated by pub on 2021-06-
28 17:34:00.086929
.
# Generated by pub on 2021-06-
30 16:41:01.704396
.
async:file:///D:/flutter/2.0.4-stable/.pub-cache/hosted/pub.dartlang.org/async-2.5.0/lib/
boolean_selector:file:///D:/flutter/2.0.4-stable/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/lib/
characters:file:///D:/flutter/2.0.4-stable/.pub-cache/hosted/pub.dartlang.org/characters-1.1.0/lib/
...
...
example/.packages
View file @
345e594d
...
...
@@ -3,7 +3,7 @@
#
# For more info see: https://dart.dev/go/dot-packages-deprecation
#
# Generated by pub on 2021-0
6-28 19:37:02.142195
.
# Generated by pub on 2021-0
7-01 08:56:01.303781
.
args:file:///D:/flutter/2.0.4-stable/.pub-cache/hosted/pub.dartlang.org/args-2.1.1/lib/
async:file:///D:/flutter/2.0.4-stable/.pub-cache/hosted/pub.dartlang.org/async-2.5.0/lib/
bloc:file:///D:/flutter/2.0.4-stable/.pub-cache/hosted/pub.dartlang.org/bloc-7.0.0/lib/
...
...
example/lib/helpers/shared_method.dart
View file @
345e594d
...
...
@@ -99,14 +99,3 @@ showToastWidget(
fontSize:
fontSize
);
}
\ No newline at end of file
// Future<String> initUserAgentState() async {
// String userAgent;
// try {
// userAgent = await FlutterUserAgent.getPropertyAsync('userAgent');
// await FlutterUserAgent.init();
// } on PlatformException {
// userAgent = '<error>';
// }
// return userAgent;
// }
\ No newline at end of file
lib/src/components/alert/lls_alert.dart
View file @
345e594d
...
...
@@ -30,6 +30,10 @@ class LLSAlertOptions {
final
LLSAlertStyle
style
;
final
TextStyle
titleStyle
;
final
TextStyle
subtitleStyle
;
LLSAlertOptions
(
{
this
.
showCancelButton
:
false
,
this
.
title
,
...
...
@@ -39,7 +43,10 @@ class LLSAlertOptions {
this
.
cancelButtonText
,
this
.
confirmButtonColor
,
this
.
confirmButtonText
,
this
.
style
=
LLSAlertStyle
.
success
});
this
.
style
=
LLSAlertStyle
.
success
,
this
.
titleStyle
=
const
TextStyle
(
fontSize:
25.0
,
color:
Color
(
0xff575757
)),
this
.
subtitleStyle
=
const
TextStyle
(
fontSize:
16.0
,
color:
Color
(
0xff797979
))
});
}
class
LLSAlertDialog
extends
StatefulWidget
{
...
...
@@ -145,7 +152,7 @@ class _LLSAlertDialogState extends State<LLSAlertDialog> with SingleTickerProvid
padding:
EdgeInsets
.
only
(
top:
24.0
),
child:
Text
(
_options
!.
title
!,
style:
TextStyle
(
fontSize:
25.0
,
color:
Color
(
0xff575757
))
,
style:
_options
!.
titleStyle
,
),
));
}
...
...
@@ -159,7 +166,7 @@ class _LLSAlertDialogState extends State<LLSAlertDialog> with SingleTickerProvid
padding:
EdgeInsets
.
only
(
top:
paddingTop
),
child:
Text
(
_options
!.
subtitle
!,
style:
TextStyle
(
fontSize:
16.0
,
color:
Color
(
0xff797979
))
,
style:
_options
!.
subtitleStyle
,
),
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment