using System.Collections.Generic; using Unity.UIWidgets.foundation; using Unity.UIWidgets.material; using Unity.UIWidgets.rendering; using Unity.UIWidgets.ui; using Unity.UIWidgets.widgets; using UnityEngine; using Color = Unity.UIWidgets.ui.Color; namespace UIWidgetsSample { public class BottomAppBarSample : UIWidgetsSamplePanel { protected override Widget createWidget() { return new MaterialApp( showPerformanceOverlay: false, home: new BottomAppBarWidget()); } protected override void OnEnable() { FontManager.instance.addFont(Resources.Load(path: "fonts/MaterialIcons-Regular"), "Material Icons"); base.OnEnable(); } } public class BottomAppBarWidget : StatelessWidget { public BottomAppBarWidget(Key key = null) : base(key) { } public override Widget build(BuildContext context) { return new Scaffold( backgroundColor: Color.clear, bottomNavigationBar: new BottomAppBar( child: new Row( mainAxisSize: MainAxisSize.max, mainAxisAlignment: MainAxisAlignment.spaceBetween, children: new List { new IconButton(icon: new Icon(Unity.UIWidgets.material.Icons.menu), onPressed: () => { }), new IconButton(icon: new Icon(Unity.UIWidgets.material.Icons.account_balance), onPressed: () => { }) }))); } } }