added keyboard dismisser

This commit is contained in:
Rylee Davis 2023-05-16 08:52:29 -06:00
parent 05dc4bdd94
commit d7769061c5
2 changed files with 13 additions and 13 deletions

View File

@ -1,10 +1,7 @@
import 'dart:io';
import 'package:drifter/pages/main_screen/main_screen_widget.dart';
import 'package:drifter/pages/splash_screen/splash_screen.dart'; import 'package:drifter/pages/splash_screen/splash_screen.dart';
import 'package:drifter/theme/app_colors.dart'; import 'package:drifter/theme/app_colors.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:keyboard_dismisser/keyboard_dismisser.dart';
void main() { void main() {
runApp(const MyApp()); runApp(const MyApp());
@ -15,17 +12,19 @@ class MyApp extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MaterialApp( return KeyboardDismisser(
title: 'Flutter Demo', child: MaterialApp(
theme: ThemeData( title: 'Flutter Demo',
appBarTheme: const AppBarTheme(backgroundColor: AppColors.background), theme: ThemeData(
bottomNavigationBarTheme: const BottomNavigationBarThemeData( appBarTheme: const AppBarTheme(backgroundColor: AppColors.background),
backgroundColor: AppColors.background, bottomNavigationBarTheme: const BottomNavigationBarThemeData(
selectedItemColor: AppColors.mainAccent, backgroundColor: AppColors.background,
unselectedItemColor: Colors.grey, selectedItemColor: AppColors.mainAccent,
unselectedItemColor: Colors.grey,
),
), ),
home: const Splash(),
), ),
home: const Splash(),
); );
} }
} }

View File

@ -34,6 +34,7 @@ dependencies:
nostr_tools: ^1.0.7 nostr_tools: ^1.0.7
flutter_secure_storage: ^8.0.0 flutter_secure_storage: ^8.0.0
flutter_svg: ^2.0.5 flutter_svg: ^2.0.5
keyboard_dismisser: ^3.0.0
# The following adds the Cupertino Icons font to your application. # The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons. # Use with the CupertinoIcons class for iOS style icons.