Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a9aba3c

Browse files
profile wrap up
1 parent 867c963 commit a9aba3c

File tree

3 files changed

+9
-23
lines changed

3 files changed

+9
-23
lines changed

‎lib/Profile/MainProfile.dart

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ class _MainProfileState extends State<MainProfile> {
1515
ProfileModel profileModel = ProfileModel();
1616
@override
1717
void initState() {
18-
// TODO: implement initState
1918
super.initState();
2019

2120
fetchData();
@@ -35,11 +34,11 @@ class _MainProfileState extends State<MainProfile> {
3534
appBar: AppBar(
3635
elevation: 0,
3736
backgroundColor: Colors.white10,
38-
leading: IconButton(
39-
icon: Icon(Icons.arrow_back),
40-
onPressed: () {},
41-
color: Colors.black,
42-
),
37+
// leading: IconButton(
38+
// icon: Icon(Icons.arrow_back),
39+
// onPressed: () {},
40+
// color: Colors.black,
41+
// ),
4342
actions: <Widget>[
4443
IconButton(
4544
icon: Icon(Icons.edit),

‎lib/Profile/ProfileScreen.dart

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import 'package:blogapp/NetworkHandler.dart';
22
import 'package:blogapp/Profile/CreatProfile.dart';
33
import 'package:flutter/material.dart';
44

5+
import 'MainProfile.dart';
6+
57
class ProfileScreen extends StatefulWidget {
68
ProfileScreen({Key key}) : super(key: key);
79

@@ -23,7 +25,7 @@ class _ProfileScreenState extends State<ProfileScreen> {
2325
var response = await networkHandler.get("/profile/checkProfile");
2426
if (response["status"] == true) {
2527
setState(() {
26-
page = showProfile();
28+
page = MainProfile();
2729
});
2830
} else {
2931
setState(() {
@@ -89,18 +91,3 @@ class _ProfileScreenState extends State<ProfileScreen> {
8991
);
9092
}
9193
}
92-
93-
// Future<http.StreamedResponse> patchImage(String filepath, String url) async {
94-
// print(filename);
95-
// String token = await storage.read(key: "token");
96-
// url = formater(url);
97-
// var request = http.MultipartRequest('PATCH', Uri.parse(url));
98-
// request.files.add(await http.MultipartFile.fromPath('img', filename));
99-
// request.headers.addAll({
100-
// "Content-type": "multipart/form-data",
101-
// "Authorization": "Bearer $token",
102-
// });
103-
// print(request.files[0].filename);
104-
// var response = await request.send();
105-
// return response;
106-
// }

‎lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class _MyAppState extends State<MyApp> {
4646
Theme.of(context).textTheme,
4747
),
4848
),
49-
home: MainProfile(),
49+
home: page,
5050
);
5151
}
5252
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /