Skip to content

activity page design #12

Merged
merged 1 commit into from
Dec 7, 2022
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
7 changes: 0 additions & 7 deletions expense_tracker/lib/Components/navbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,6 @@ class DesktopNavbar extends StatelessWidget {
const SizedBox(
width: 30,
),
const Text(
"About us",
style: TextStyle(color: Colors.white),
),
const SizedBox(
width: 30,
),
const Text(
"Profile",
style: TextStyle(color: Colors.white),
Expand Down
70 changes: 70 additions & 0 deletions expense_tracker/lib/Screens/activity.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
import 'package:flutter/material.dart';
import '../Components/navbar.dart';
import './myhomepage.dart';

// import 'package:firebase_auth/firebase_auth.dart' as firebase_auth;

class Activity extends StatefulWidget {
const Activity({super.key});

@override
State<Activity> createState() => _ActivityState();
}

class _ActivityState extends State<Activity> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: SingleChildScrollView(
child: Container(
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
decoration: const BoxDecoration(
gradient: LinearGradient(
begin: Alignment.centerLeft,
end: Alignment.centerRight,
colors: [
Color.fromARGB(255, 83, 78, 212),
Color.fromARGB(255, 28, 28, 28)
])),
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
// mainAxisAlignment: MainAxisAlignment.center,
children: [
const Navbar(),
const Padding(
padding: EdgeInsets.symmetric(vertical: 20.0, horizontal: 40.0),
),
Container(
width: 600,
// height: 50,
child: Card(
child: Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
Padding(
padding: EdgeInsetsDirectional.fromSTEB(20, 0, 0, 0),
// child: Text("Description",
// style: TextStyle(
// color: Color.fromARGB(255, 255, 255, 255)))

child: const ListTile(
title: Text('kjasdhksgjdv'),
subtitle: Text('jdfndnhgvfvdsjn'),
),
),
// SizedBox(
// width: 0,
// height: 50,
// ),
],
),
),
),
],
),
),
),
);
}
}
5 changes: 2 additions & 3 deletions expense_tracker/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:expense_tracker/Screens/profile.dart';
import './Screens/profile.dart';
import 'package:expense_tracker/Screens/activity.dart';
import 'package:firebase_core/firebase_core.dart';
import 'firebase_options.dart';
import 'package:flutter/material.dart';
Expand All @@ -20,7 +19,7 @@ class MyApp extends StatelessWidget {
return MaterialApp(
title: 'Expense Tracker',
theme: ThemeData(primarySwatch: Colors.blue, fontFamily: "Montserrat"),
home: Profile(),
home: Activity(),
);
}
}