Column(
crossAxisAlignment: CrossAxisAlignment.end,
mainAxisAlignment: MainAxisAlignment.end,
children: <Widget>[
Row(
// crossAxisAlignment: CrossAxisAlignment.end,
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
FloatingActionButton(
onPressed: () {
//ClearSession();
if (Navigator.canPop(context)) {
Navigator.pop(context, true);
}
Navigator.pushReplacement(
context,
MaterialPageRoute(
builder: (context) =>
Home(22.0, 22.0)));
}
// Add your onPressed code here!
,
backgroundColor: Colors.green,
child: const Icon(Icons.home),
),
FloatingActionButton(
onPressed: () {
//ClearSession();
if (Navigator.canPop(context)) {
Navigator.pop(context, true);
}
Navigator.pushReplacement(
context,
MaterialPageRoute(
builder: (context) =>
const Calender()));
}
// Add your onPressed code here!
,
backgroundColor: Colors.green,
child: const Icon(Icons.calendar_month),
),
FloatingActionButton(
onPressed: () {
//ClearSession();
if (Navigator.canPop(context)) {
Navigator.pop(context, true);
}
Navigator.pushReplacement(
context,
MaterialPageRoute(
builder: (context) =>
const Community()));
},
backgroundColor: Colors.green,
child: const Icon(Icons.article_rounded),
),
FloatingActionButton(
onPressed: () {
// Add your onPressed code here!
},
backgroundColor: Colors.green,
child: const Icon(
Icons.settings_accessibility_sharp),
),
],
),
],
),
它应该与所有类型的屏幕兼容,无论屏幕大小 我不想使用填充,因为它只适用于某些屏幕,不适用于所有类型的屏幕 图标位于屏幕中央,
我想把它们都放在屏幕上的按钮里
it should be compatible with all types of screens regardless of screen size I don't want to use padding because it only works for some screen,not for all type of the screen the icons are in the middle of the screen, 我想把它们都放在屏幕上的按钮里