Created
January 17, 2022 20:14
-
-
Save DaisukeNagata/572f405532d9560074687c79290bed22 to your computer and use it in GitHub Desktop.
Whenever I called Scaffold with Scaffold, I confirmed that Tab was on the Keyboard.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
void main() { | |
runApp(new MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return new MaterialApp( | |
title: 'Flutter Demo', | |
theme: new ThemeData( | |
primarySwatch: Colors.blue, | |
), | |
home: Scaffold( | |
body: new MyHomePage(title: 'Flutter Demo Home Page'),), | |
// home: new ExpandableView(), | |
); | |
} | |
} | |
class MyHomePage extends StatefulWidget { | |
MyHomePage({required this.title}); | |
final String title; | |
@override | |
_MyHomePageState createState() => new _MyHomePageState(); | |
} | |
class _MyHomePageState extends State<MyHomePage> { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
body: SingleChildScrollView( | |
child: Column( | |
children: <Widget>[ | |
Padding(padding: EdgeInsets.only(top: 100)), | |
new TextField(), | |
], | |
), | |
), | |
bottomNavigationBar: SizedBox( | |
height: 120, | |
child: Container( | |
color: Colors.blue, | |
alignment: Alignment.topCenter, | |
child: BottomNavigationBar( | |
backgroundColor: Colors.blue.withAlpha(0), | |
elevation: 0, | |
items: [ | |
BottomNavigationBarItem( | |
icon: Icon(Icons.home, size: 50), | |
label: 'Home', | |
), | |
BottomNavigationBarItem( | |
icon: Icon(Icons.child_friendly, size: 50), | |
label: 'Child', | |
), | |
], | |
selectedItemColor: Colors.black, | |
unselectedItemColor: Colors.black, | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
2022-01-18.5.16.16.mov