Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
22_23-J 21
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
22_23-J 21
22_23-J 21
Commits
6d2d6ba3
Commit
6d2d6ba3
authored
May 12, 2023
by
Karunarathna K.M.D.Y.K
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'IT19975382' into 'master'
Added image util providers See merge request
!14
parents
dd57c792
fca3d4be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
FrontEnd/lib/providers/img_util_provider.dart
FrontEnd/lib/providers/img_util_provider.dart
+31
-0
No files found.
FrontEnd/lib/providers/img_util_provider.dart
0 → 100644
View file @
6d2d6ba3
import
'package:flutter/material.dart'
;
class
ImageUtilProvider
extends
ChangeNotifier
{
ImageProvider
?
_image
;
String
?
_imagePath
;
String
imageUrl
=
''
;
String
?
get
imagePath
=>
_imagePath
;
ImageProvider
?
get
image
=>
_image
;
set
image
(
ImageProvider
?
image
)
{
_image
=
image
;
notifyListeners
();
}
set
imagePath
(
String
?
imagePath
)
{
_imagePath
=
imagePath
;
notifyListeners
();
}
void
clearImage
()
{
_image
=
null
;
_imagePath
=
null
;
notifyListeners
();
}
void
setImageUrl
(
String
url
)
{
imageUrl
=
url
;
notifyListeners
();
}
}
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