OTP - Changed appBar title to Nekoya to match the other pages

This commit is contained in:
Matthew Patrick 2022-05-16 02:03:13 +07:00
parent 21466b3f63
commit a341dd52dd
2 changed files with 3 additions and 2 deletions
lib
components
screens

View file

@ -1,4 +1,5 @@
import 'dart:math' as math;
import 'package:nekoya_flutter/screens/otp.dart';
import 'package:universal_html/html.dart' as html;
import 'package:flutter/material.dart';
@ -74,7 +75,7 @@ class _MenuState extends State<Menu> {
html.window.history.pushState(null, '', '/products');
_selectedWidget = const Products();
} else if (index == 2) {
_selectedWidget = const Home();
_selectedWidget = const Otp();
} else if (index == 3) {
html.window.history.pushState(null, '', '/cart');
_selectedWidget = const Cart();

View file

@ -14,7 +14,7 @@ class _OtpState extends State<Otp> {
return Scaffold(
backgroundColor: const Color(0xff1b1c1e),
appBar: AppBar(
title: const Text('OTP VERIFICATION'),
title: const Text('Nekoya'),
centerTitle: true,
backgroundColor: const Color(0xff212226),
),