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

feat: Initial map page #68

Merged
merged 1 commit into from
Jan 24, 2025
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
Binary file removed pi-bank-app/lib/icons/bill.png
Binary file not shown.
Binary file removed pi-bank-app/lib/icons/credit-card.png
Binary file not shown.
Binary file removed pi-bank-app/lib/icons/lending.png
Binary file not shown.
Binary file added pi-bank-app/lib/icons/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion pi-bank-app/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:online_bank/pages/map_page.dart';
import 'package:online_bank/pages/statistics_page.dart';
import 'package:online_bank/pages/transfer_page.dart';
import 'package:online_bank/pages/home_page.dart';
Expand Down Expand Up @@ -31,7 +32,8 @@ class MyApp extends StatelessWidget {
'/about': (context) => AboutPage(),
'/settings': (context) => SettingsPage(),
'/transfer': (context) => SendPage(),
'/statistics': (context) => StatsPage()
'/statistics': (context) => StatsPage(),
'/map': (context) => MapPage()
},
);
}
Expand Down
8 changes: 8 additions & 0 deletions pi-bank-app/lib/pages/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,14 @@ class _HomePageState extends State<HomePage> {
tileSubtitle: 'Разплащания',
routeName: '/statistics',
),

// Map
MyListTile(
iconImagePath: 'lib/icons/map.png',
tileTitle: 'Клонове',
tileSubtitle: 'Получи консултация',
routeName: '/map',
),
],
),
)
Expand Down
15 changes: 15 additions & 0 deletions pi-bank-app/lib/pages/map_page.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import 'package:flutter/material.dart';

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

@override
State<MapPage> createState() => _MapPageState();
}

class _MapPageState extends State<MapPage> {
@override
Widget build(BuildContext context) {
return const Placeholder();
}
}
2 changes: 1 addition & 1 deletion pi-bank-app/lib/utill/my_list_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class MyListTile extends StatelessWidget {
child: ElevatedButton(
onPressed: () {
HapticFeedback.vibrate();
Navigator.pushNamed(context, routeName); // Use named route here
Navigator.pushNamed(context, routeName);
},
style: ElevatedButton.styleFrom(
shadowColor: Colors.transparent,
Expand Down
2 changes: 2 additions & 0 deletions pi-bank-app/macos/Flutter/GeneratedPluginRegistrant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ import FlutterMacOS
import Foundation

import flutter_secure_storage_macos
import geolocator_apple
import local_auth_darwin
import path_provider_foundation
import shared_preferences_foundation

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
FlutterSecureStoragePlugin.register(with: registry.registrar(forPlugin: "FlutterSecureStoragePlugin"))
GeolocatorPlugin.register(with: registry.registrar(forPlugin: "GeolocatorPlugin"))
FLALocalAuthPlugin.register(with: registry.registrar(forPlugin: "FLALocalAuthPlugin"))
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
Expand Down
Loading
Loading