Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added idea_widget to the idea_screen #11

Merged
merged 1 commit into from
Oct 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions lib/Screens/ideas_screen.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import 'package:flutter/material.dart';
import 'package:gdsc_usict/widgets/idea_widget.dart';

class IdeasScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
padding: EdgeInsets.only(top: 30),
child: ListView(
children: [
IdeaWidget(),
IdeaWidget(),
IdeaWidget(),
IdeaWidget(),
],
),
),
);
}
}
4 changes: 2 additions & 2 deletions lib/Screens/landing_screen.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:animated_bottom_navigation_bar/animated_bottom_navigation_bar.dart';
import "package:flutter/material.dart";
import 'package:gdsc_usict/Screens/add_post_screen.dart';
import 'package:gdsc_usict/Screens/messaging_screen.dart';
import 'package:gdsc_usict/Screens/ideas_screen.dart';
import 'package:gdsc_usict/Screens/profile_screen.dart';

import 'home_screen.dart';
Expand Down Expand Up @@ -44,7 +44,7 @@ class _LandingScreenState extends State<LandingScreen> {
body: PageView(
children: [
HomeScreen(),
MessagingScreen(),
IdeasScreen(),
AddPostScreen(),
ProfileScreen(),
],
Expand Down
33 changes: 33 additions & 0 deletions lib/widgets/idea_widget.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import 'package:flutter/material.dart';

class IdeaWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Padding(
padding: EdgeInsets.fromLTRB(30, 5, 30, 5),
child: SizedBox(
child: Card(
color: Colors.blueGrey[200],
shadowColor: Colors.amber[900],
child: InkWell(
splashColor: Colors.amber[300],
onTap: () {},
child: ListTile(
trailing: FloatingActionButton(
mini: true,
backgroundColor: Colors.blueGrey[900],
onPressed: () {},
child: Icon(Icons.mail, color: Colors.white),
),
title: Text("Idea"),
subtitle: Text(
'Project / Shared Idea',
style: TextStyle(fontSize: 10.0),
),
),
),
),
),
);
}
}
10 changes: 5 additions & 5 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.7.0"
version: "2.5.0"
boolean_selector:
dependency: transitive
description:
Expand All @@ -35,7 +35,7 @@ packages:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.1"
version: "1.2.0"
clock:
dependency: transitive
description:
Expand Down Expand Up @@ -87,7 +87,7 @@ packages:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.7.0"
version: "1.3.0"
path:
dependency: transitive
description:
Expand All @@ -106,7 +106,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.1"
version: "1.8.0"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -141,7 +141,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.1"
version: "0.2.19"
typed_data:
dependency: transitive
description:
Expand Down