Skip to content

Commit

Permalink
share and menu fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mshaileshr@gmail.com authored and mshaileshr@gmail.com committed Jan 21, 2020
1 parent 4820403 commit bc5043a
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 59 deletions.
3 changes: 2 additions & 1 deletion lib/ui/loginPage/login.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class _HealthNestLoginState extends State<HealthNestLogin> {
child: Align(
alignment: Alignment.bottomCenter,
child: formUI(),
)//formUI(),
)
);
}

Expand Down Expand Up @@ -142,6 +142,7 @@ class _HealthNestLoginState extends State<HealthNestLogin> {
Expanded(
flex: 2,
child: TextFormField(

maxLength: 10,
keyboardType: TextInputType.number,
onChanged: (String newVal) {
Expand Down
94 changes: 36 additions & 58 deletions lib/ui/newsFeedPage/widgets/feedCard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ Widget renderCategoryTime(Feed listFeed) {
}

_onCenterBottomMenuOn3DotsPressed(BuildContext context) {
//debugPrint('_buildBottomNavMenu');

showModalBottomSheet(
context: context,
builder: (context) {
Expand All @@ -191,69 +191,47 @@ _onCenterBottomMenuOn3DotsPressed(BuildContext context) {
}

Widget _buildBottomNavMenu(BuildContext context) {

List<Menu3DotsModel> listMore = [];
listMore.add(Menu3DotsModel('Hide <Post type>', 'See fewer posts like this', Icons.block));
listMore.add(Menu3DotsModel('Unfollow <username>', 'See fewer posts like this', Icons.person_add));
listMore.add(Menu3DotsModel('Report <Post type>', 'See fewer posts like this', Icons.info));
listMore.add(Menu3DotsModel('Copy <Post type> link', 'See fewer posts like this', Icons.insert_link));


return Container(
height: 300,
decoration: BoxDecoration(
color: Theme.of(context).canvasColor,
borderRadius: BorderRadius.only(
topLeft: const Radius.circular(20),
topRight: const Radius.circular(20),
topLeft: const Radius.circular(10),
topRight: const Radius.circular(10),
),
),
child: Column(
children: <Widget>[
ListTile(
leading: Icon(FontAwesomeIcons.cross, size: 15),
onTap: () {
print('hide');
Navigator.pop(context);
},
title: Text('Hide <Post type>'),
subtitle: Text('See fewer posts like this'),
),
Divider(
height: 1,
color: Colors.grey[500],
),
ListTile(
leading: Icon(
FontAwesomeIcons.solidEyeSlash,
size: 15,
),
onTap: () {
print('Unfollow <username>');
Navigator.pop(context);
},
title: Text('Unfollow <username>'),
subtitle: Text('See fewer posts like this'),
),
Divider(
height: 1,
color: Colors.grey[500],
),
ListTile(
leading: Icon(Icons.report, size: 15),
onTap: () {
print('Report');
Navigator.pop(context);
},
title: Text('Report <Post type>'),
subtitle: Text('See fewer posts like this'),
),
Divider(
height: 1,
color: Colors.grey[500],
),
ListTile(
leading: Icon(Icons.link, size: 15),
onTap: () {
debugPrint('Copy <Post type> link');
Navigator.pop(context);
},
title: Text('Copy <Post type> link'),
subtitle: Text('See fewer posts like this'),
),
],
),

child: ListView.builder(
itemCount: listMore.length,
itemBuilder: (BuildContext context, int index){
return ListTile(
title: Text(listMore[index].title, style: TextStyle(fontSize: 18),),
subtitle: Text(listMore[index].subtitle),
leading: Icon(listMore[index].icons, size: 20, color: Colors.teal,),
);
})


);
}



class Menu3DotsModel{

String title;
String subtitle;
IconData icons;

Menu3DotsModel(this.title, this.subtitle, this.icons);


}
Binary file modified screenshots/share.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bc5043a

Please sign in to comment.