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
733ee77a
Commit
733ee77a
authored
Aug 15, 2024
by
Ilham Maulana
💻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: move baseUrl to constant.dart
parent
41d744ca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
constans.dart
lib/src/constans.dart
+1
-0
auth_provider.dart
lib/src/providers/auth_provider.dart
+2
-1
book_provider.dart
lib/src/providers/book_provider.dart
+2
-1
No files found.
lib/src/constans.dart
0 → 100644
View file @
733ee77a
String
baseUrl
=
'https://ilhammaulana.pythonanywhere.com/api/v1'
;
\ No newline at end of file
lib/src/providers/auth_provider.dart
View file @
733ee77a
...
@@ -8,8 +8,9 @@ import 'package:http/http.dart' as http;
...
@@ -8,8 +8,9 @@ import 'package:http/http.dart' as http;
import
'package:library_app/src/models/token.dart'
;
import
'package:library_app/src/models/token.dart'
;
import
'package:library_app/src/models/user.dart'
;
import
'package:library_app/src/models/user.dart'
;
import
'package:library_app/src/constans.dart'
;
class
AuthProvider
with
ChangeNotifier
{
class
AuthProvider
with
ChangeNotifier
{
String
baseUrl
=
'https://ilhammaulana.pythonanywhere.com/api/v1'
;
String
?
message
;
String
?
message
;
User
?
user
;
User
?
user
;
...
...
lib/src/providers/book_provider.dart
View file @
733ee77a
...
@@ -3,8 +3,9 @@ import 'dart:convert';
...
@@ -3,8 +3,9 @@ import 'dart:convert';
import
'package:flutter/foundation.dart'
;
import
'package:flutter/foundation.dart'
;
import
'package:http/http.dart'
as
http
;
import
'package:http/http.dart'
as
http
;
import
'package:library_app/src/constans.dart'
;
class
BookProvider
with
ChangeNotifier
{
class
BookProvider
with
ChangeNotifier
{
String
baseUrl
=
'https://ilhammaulana.pythonanywhere.com/api/v1'
;
List
<
dynamic
>?
books
;
List
<
dynamic
>?
books
;
List
<
dynamic
>?
categories
;
List
<
dynamic
>?
categories
;
Category
?
category
;
Category
?
category
;
...
...
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