-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/PBP-F09/final-project
- Loading branch information
Showing
10 changed files
with
181 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
part 'login_page.dart'; | ||
part 'signup_page.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
part of '_authentication.dart'; | ||
|
||
class LoginPage extends StatelessWidget { | ||
const LoginPage({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
body: Text('data'), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
part of '_authentication.dart'; | ||
|
||
class SignUpPage extends StatelessWidget { | ||
const SignUpPage({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
import 'package:endterm_project/main.dart'; | ||
import 'package:endterm_project/routes/routes_name.dart'; | ||
import 'package:flashy_tab_bar2/flashy_tab_bar2.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
import '../../widgets/globals/_globals.dart'; | ||
|
||
part 'home_page.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,88 @@ | ||
part of '_homepage.dart'; | ||
|
||
class HomePage extends StatelessWidget { | ||
class HomePage extends StatefulWidget { | ||
const HomePage({super.key}); | ||
|
||
@override | ||
State<HomePage> createState() => _HomePageState(); | ||
} | ||
|
||
class _HomePageState extends State<HomePage> { | ||
int _selectedIndex = 0; | ||
static const List<Widget> _pages = <Widget>[ | ||
MyHomePage( | ||
title: 'test', | ||
), | ||
MyHomePage( | ||
title: 'title', | ||
), | ||
]; | ||
|
||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Container(); | ||
return Scaffold( | ||
body: _pages.elementAt(_selectedIndex), | ||
bottomNavigationBar: Container( | ||
height: 65, | ||
decoration: const BoxDecoration( | ||
borderRadius: BorderRadius.only( | ||
topRight: Radius.circular( | ||
15, | ||
), | ||
topLeft: Radius.circular( | ||
15, | ||
), | ||
), | ||
boxShadow: [ | ||
BoxShadow( | ||
blurRadius: 3, | ||
spreadRadius: 3, | ||
), | ||
], | ||
), | ||
child: ClipRRect( | ||
borderRadius: const BorderRadius.only( | ||
topLeft: Radius.circular( | ||
15, | ||
), | ||
topRight: Radius.circular( | ||
15, | ||
), | ||
), | ||
child: FlashyTabBar( | ||
selectedIndex: _selectedIndex, | ||
showElevation: true, | ||
onItemSelected: (index) => (setState( | ||
() { | ||
_selectedIndex = index; | ||
}, | ||
)), | ||
items: [ | ||
FlashyTabBarItem( | ||
icon: const Icon(Icons.library_books_outlined), | ||
title: const Text('Baca'), | ||
), | ||
FlashyTabBarItem( | ||
icon: const Icon(Icons.book), | ||
title: const Text('Catat'), | ||
), | ||
FlashyTabBarItem( | ||
icon: const Icon(Icons.child_care), | ||
title: const Text('Diary'), | ||
), | ||
FlashyTabBarItem( | ||
icon: const Icon(Icons.search), | ||
title: const Text('Periksa'), | ||
), | ||
FlashyTabBarItem( | ||
icon: const Icon(Icons.question_answer_outlined), | ||
title: const Text('Tanya'), | ||
), | ||
], | ||
), | ||
), | ||
), | ||
); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import 'package:flashy_tab_bar2/flashy_tab_bar2.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
part 'bottom_navbar.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
part of '_globals.dart'; | ||
|
||
class BottomNavbar extends StatefulWidget { | ||
BottomNavbar({super.key}); | ||
|
||
@override | ||
State<BottomNavbar> createState() => _BottomNavbarState(); | ||
} | ||
|
||
class _BottomNavbarState extends State<BottomNavbar> { | ||
var _selectedIndex = 0; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return FlashyTabBar( | ||
selectedIndex: _selectedIndex, | ||
showElevation: true, | ||
onItemSelected: (index) => (setState( | ||
() { | ||
_selectedIndex = index; | ||
}, | ||
)), | ||
items: [ | ||
FlashyTabBarItem( | ||
icon: const Icon(Icons.library_books_outlined), | ||
title: const Text('Baca'), | ||
), | ||
FlashyTabBarItem( | ||
icon: const Icon(Icons.book), | ||
title: const Text('Catat'), | ||
), | ||
FlashyTabBarItem( | ||
icon: const Icon(Icons.child_care), | ||
title: const Text('Diary'), | ||
), | ||
FlashyTabBarItem( | ||
icon: const Icon(Icons.search), | ||
title: const Text('Periksa'), | ||
), | ||
FlashyTabBarItem( | ||
icon: const Icon(Icons.question_answer_outlined), | ||
title: const Text('Tanya'), | ||
), | ||
], | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters