mirror of
https://github.com/hackku21/loc-chain-app.git
synced 2026-03-02 03:40:13 +00:00
added the libary
This commit is contained in:
@@ -2,6 +2,9 @@ import 'package:flutter/material.dart';
|
||||
import 'package:loc_chain_app/pages/home.dart';
|
||||
import 'package:loc_chain_app/pages/keygen.dart';
|
||||
|
||||
import '../pages/bluetooth.dart';
|
||||
import '../pages/settings.dart';
|
||||
|
||||
class NavBarWidget extends StatefulWidget {
|
||||
NavBarWidget({Key key}) : super(key: key);
|
||||
|
||||
@@ -16,9 +19,15 @@ class _NavBarWidgetState extends State<NavBarWidget> {
|
||||
HomePage(
|
||||
title: 'Home',
|
||||
),
|
||||
BluetoothPage(
|
||||
title: 'Connect',
|
||||
),
|
||||
KeygenPage(
|
||||
title: 'RSA Configuration',
|
||||
),
|
||||
SettingsPage(
|
||||
title: 'Settings',
|
||||
)
|
||||
];
|
||||
void _onItemTapped(int index) => setState(() {
|
||||
_selectedIndex = index;
|
||||
@@ -35,11 +44,21 @@ class _NavBarWidgetState extends State<NavBarWidget> {
|
||||
label: 'Home',
|
||||
backgroundColor: Colors.cyan,
|
||||
),
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.bluetooth),
|
||||
label: 'Connect',
|
||||
backgroundColor: Colors.cyan,
|
||||
),
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.lock_rounded),
|
||||
label: 'RSA Configuration',
|
||||
backgroundColor: Colors.cyan,
|
||||
),
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.lock_rounded),
|
||||
label: 'Settings',
|
||||
backgroundColor: Colors.cyan,
|
||||
),
|
||||
],
|
||||
currentIndex: _selectedIndex,
|
||||
selectedItemColor: Colors.lightBlueAccent,
|
||||
|
||||
Reference in New Issue
Block a user