Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
library-app-flutter
Project
Project
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
Ilham Maulana
library-app-flutter
Commits
d314b982
Commit
d314b982
authored
Jul 30, 2024
by
Ilham Maulana
💻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: refresh profile state data after update
parent
511976a0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
profile.dart
lib/src/widgets/profile.dart
+15
-1
No files found.
lib/src/widgets/profile.dart
View file @
d314b982
...
...
@@ -5,9 +5,23 @@ import 'package:library_app/src/screens/form_screen.dart';
import
'package:library_app/src/widgets/navigations.dart'
;
import
'package:provider/provider.dart'
;
class
Profile
extends
State
less
Widget
{
class
Profile
extends
State
ful
Widget
{
const
Profile
({
super
.
key
});
@override
State
<
Profile
>
createState
()
=>
_Profile
();
}
class
_Profile
extends
State
<
Profile
>
{
@override
void
initState
()
{
super
.
initState
();
Future
.
delayed
(
Duration
.
zero
,
()
=>
Provider
.
of
<
AuthProvider
>(
context
,
listen:
false
).
getUserDetail
(),
);
}
@override
Widget
build
(
BuildContext
context
)
{
return
Consumer
<
AuthProvider
>(
...
...
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