|
1 | 1 | import 'package:flutter/cupertino.dart';
|
2 | 2 | import 'package:flutter/material.dart';
|
| 3 | +import 'package:google_fonts/google_fonts.dart'; |
3 | 4 | import 'package:ios_chatapp/model/users.dart';
|
4 | 5 | import 'package:ios_chatapp/provider/user_provider.dart';
|
5 | 6 | import 'package:ios_chatapp/shared/style.dart';
|
@@ -51,22 +52,107 @@ class _OtherUserProfileState extends State<OtherUserProfile> {
|
51 | 52 | // )
|
52 | 53 | return Consumer<UserProvider>(
|
53 | 54 | builder: (context, userProfile, _) => CupertinoPageScaffold(
|
54 |
| - child: Card( |
55 |
| - margin: const EdgeInsets.only(bottom: defaultPadding), |
56 |
| - color: deepPurpleAccent, |
57 |
| - child: Column( |
58 |
| - // clipBehavior: Clip.none, |
59 |
| - children: [ |
60 |
| - // Show Other User Background Image |
61 |
| - _buildUserBackgroundImage(), |
| 55 | + // child: Card( |
| 56 | + // margin: const EdgeInsets.only(bottom: defaultPadding), |
| 57 | + // color: deepPurpleAccent, |
| 58 | + // // child: Column( |
| 59 | + // // // clipBehavior: Clip.none, |
| 60 | + // // children: [ |
| 61 | + // // // Show Other User Background Image |
| 62 | + // // _buildUserBackgroundImage(), |
62 | 63 |
|
63 |
| - // Show Other User Profile Image and Name |
64 |
| - _buildUserCardText() |
| 64 | + // // // Show Other User Profile Image and Name |
| 65 | + // // _buildUserCardText() |
65 | 66 |
|
66 |
| - // Show Chat Button |
67 |
| - ], |
68 |
| - ) |
69 |
| - ) |
| 67 | + // // // Show Chat Button |
| 68 | + // // ], |
| 69 | + // // ) |
| 70 | + // // child: Container( |
| 71 | + // // decoration: BoxDecoration( |
| 72 | + // // image: DecorationImage( |
| 73 | + // // image: AssetImage("assets/image/user/sample_user.png"), |
| 74 | + // // fit: BoxFit.fitWidth, |
| 75 | + // // alignment: Alignment.topCenter, |
| 76 | + // // ) |
| 77 | + // // ), |
| 78 | + // // child: Container( |
| 79 | + // // child: Column( |
| 80 | + // // crossAxisAlignment: CrossAxisAlignment.center, |
| 81 | + // // // ignore: prefer_const_literals_to_create_immutables |
| 82 | + // // children: [ |
| 83 | + // // TextButton( |
| 84 | + // // onPressed: () { |
| 85 | + // // Navigator.of(context).pop(); |
| 86 | + // // }, |
| 87 | + // // child: const Text('Go back') |
| 88 | + // // ), |
| 89 | + // // Text( |
| 90 | + // // // 'Test', |
| 91 | + // // selectedUser!.name, |
| 92 | + // // // userList.userName, |
| 93 | + // // style: TextStyle( |
| 94 | + // // fontWeight: FontWeight.bold, |
| 95 | + // // color: Colors.white |
| 96 | + // // ) |
| 97 | + // // ), |
| 98 | + // // ], |
| 99 | + // // ) |
| 100 | + // // ) |
| 101 | + |
| 102 | + // // ), |
| 103 | + // ) |
| 104 | + child: Stack( |
| 105 | + children: [ |
| 106 | + SizedBox( |
| 107 | + child: Image.asset("assets/image/background/bg01.jpg", fit: BoxFit.cover), |
| 108 | + ), |
| 109 | + DraggableScrollableSheet( |
| 110 | + minChildSize: 0.1, |
| 111 | + initialChildSize: 0.22, |
| 112 | + builder:(context, scrollController) { |
| 113 | + return SingleChildScrollView( |
| 114 | + physics: const NeverScrollableScrollPhysics(), |
| 115 | + child: Container( |
| 116 | + constraints: BoxConstraints(minHeight: MediaQuery.of(context).size.height), |
| 117 | + color: Colors.amber, |
| 118 | + child: Column( |
| 119 | + crossAxisAlignment: CrossAxisAlignment.start, |
| 120 | + mainAxisAlignment: MainAxisAlignment.start, |
| 121 | + children: [ |
| 122 | + Container( |
| 123 | + padding: const EdgeInsets.only(left: 32, right: 32, top: 32), |
| 124 | + child: Row( |
| 125 | + mainAxisAlignment: MainAxisAlignment.spaceBetween, |
| 126 | + children: [ |
| 127 | + SizedBox( |
| 128 | + height: 100, |
| 129 | + width: 100, |
| 130 | + child: ClipOval( |
| 131 | + child: Image.asset("assets/image/user/sample_user.png", fit: BoxFit.cover) |
| 132 | + ) |
| 133 | + ), |
| 134 | + SizedBox(width: 16,), |
| 135 | + Expanded( |
| 136 | + child: Column( |
| 137 | + crossAxisAlignment: CrossAxisAlignment.start, |
| 138 | + children: [ |
| 139 | + Text("Vincent Geonwoo", style: GoogleFonts.roboto(color: Colors.grey[800], fontSize: 36, fontWeight: FontWeight.w700)), |
| 140 | + Text("Vincent Geonwoo", style: GoogleFonts.roboto(color: Colors.grey[500], fontSize: 16, fontWeight: FontWeight.w400)) |
| 141 | + // Text("John Doe", style: TextStyle(color: Colors.grey[800], fontFamily: "Roboto")) |
| 142 | + ], |
| 143 | + ), |
| 144 | + ) |
| 145 | + ], |
| 146 | + ), |
| 147 | + ) |
| 148 | + ], |
| 149 | + ), |
| 150 | + ) |
| 151 | + ); |
| 152 | + }, |
| 153 | + ) |
| 154 | + ], |
| 155 | + ) |
70 | 156 | )
|
71 | 157 | );
|
72 | 158 | }
|
|
0 commit comments