Skip to content

Commit cda1727

Browse files
authored
Merge pull request #10 from ngomile/main
Fix SnackBar Displaying Incorrectly
2 parents 72ba8cc + cf7298f commit cda1727

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

lib/components/job_model_widgets.dart

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,21 @@ class JobTile extends StatelessWidget {
4141
if (context.mounted) {
4242
ScaffoldMessenger.of(context).showSnackBar(
4343
const SnackBar(
44-
content: SnackBar(
45-
content: Text(
46-
'Copied to Clipboard',
47-
textAlign: TextAlign.center,
48-
style: TextStyle(
49-
color: Colors.white,
50-
),
44+
content: Text(
45+
'Copied to Clipboard',
46+
textAlign: TextAlign.center,
47+
style: TextStyle(
48+
color: Colors.white,
5149
),
5250
),
51+
backgroundColor: Colors.black,
52+
elevation: 8,
53+
margin: EdgeInsets.symmetric(
54+
horizontal: 32.0,
55+
vertical: 8.0,
56+
),
57+
behavior: SnackBarBehavior.floating,
58+
duration: Duration(milliseconds: 650),
5359
),
5460
);
5561
}

lib/screens/about_screen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class _AppDetailSection extends StatelessWidget {
6565
),
6666
),
6767
TextSpan(
68-
text: 'Version 1.1.3\n',
68+
text: 'Version 1.1.4\n',
6969
style: TextStyle(
7070
color: Theme.of(context).colorScheme.secondary,
7171
),

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
1717
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
1818
# In Windows, build-name is used as the major, minor, and patch parts
1919
# of the product and file versions while build-number is used as the build suffix.
20-
version: 1.1.3+7
20+
version: 1.1.4+8
2121

2222
environment:
2323
sdk: ">=3.0.6 <4.0.0"

0 commit comments

Comments
 (0)