forked from alexvasl/drifter_app
added keyboard dismisser
This commit is contained in:
parent
05dc4bdd94
commit
d7769061c5
@ -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(),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user