rand dart fix
This commit is contained in:
@@ -28,7 +28,7 @@ class GridTabItem extends StatelessWidget {
|
||||
feedback: DefaultTextStyle(
|
||||
style: adaptive && defaultTargetPlatform == TargetPlatform.iOS
|
||||
? CupertinoTheme.of(context).textTheme.textStyle
|
||||
: Theme.of(context).textTheme.title!,
|
||||
: Theme.of(context).textTheme.titleLarge!,
|
||||
child: Container(
|
||||
width: 120.0,
|
||||
height: 80.0,
|
||||
|
||||
@@ -70,7 +70,7 @@ class _EditScreenState extends State<EditScreen> {
|
||||
));
|
||||
}
|
||||
return DefaultTextStyle(
|
||||
style: Theme.of(context).textTheme.display1!,
|
||||
style: Theme.of(context).textTheme.headlineMedium!,
|
||||
child: Scaffold(
|
||||
appBar: AppBar(
|
||||
actions: <Widget>[
|
||||
@@ -118,7 +118,7 @@ class _EditScreenState extends State<EditScreen> {
|
||||
"Drag the icons to\norganize tabs.",
|
||||
style: Theme.of(context)
|
||||
.textTheme
|
||||
.headline4!
|
||||
.headlineMedium!
|
||||
.copyWith(fontSize: 22.0),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
@@ -197,7 +197,7 @@ class _BottomEditableTabBarState extends State<BottomEditableTabBar> {
|
||||
// draggable: true,
|
||||
);
|
||||
},
|
||||
onWillAccept: (String? data) {
|
||||
onWillAcceptWithDetails: (String? data) {
|
||||
setState(() {
|
||||
_previewIndex = _targets.indexOf(t);
|
||||
});
|
||||
@@ -208,7 +208,7 @@ class _BottomEditableTabBarState extends State<BottomEditableTabBar> {
|
||||
_previewIndex = null;
|
||||
});
|
||||
},
|
||||
onAccept: (String data) {
|
||||
onAcceptWithDetails: (String data) {
|
||||
final DynamicTab _baseTab = _targets[_previewIndex!];
|
||||
final DynamicTab _newTab = _tabs!.firstWhere((t) => t.tag == data);
|
||||
final int _oldIndex = _tabs!.indexOf(_newTab);
|
||||
@@ -232,7 +232,7 @@ class _BottomEditableTabBarState extends State<BottomEditableTabBar> {
|
||||
child: Container(),
|
||||
tab: BottomNavigationBarItem(
|
||||
icon: Icon(Icons.more_horiz),
|
||||
title: Text("More"),
|
||||
label: Text("More"),
|
||||
),
|
||||
tag: "",
|
||||
),
|
||||
|
||||
@@ -183,7 +183,7 @@ class MaterialPage extends StatelessWidget {
|
||||
final i = model.extraTabs[index];
|
||||
return ListTile(
|
||||
leading: i.tab.icon,
|
||||
title: i.tab.title,
|
||||
title: i.tab.label,
|
||||
selected: expanded ? index == model.subIndex : false,
|
||||
trailing:
|
||||
!expanded ? Icon(Icons.keyboard_arrow_right) : null,
|
||||
@@ -245,7 +245,7 @@ class CupertinoPage extends StatelessWidget {
|
||||
(BuildContext context, int index) {
|
||||
final i = model.extraTabs[index];
|
||||
final Icon _icon = i.tab.icon as Icon;
|
||||
final Text _text = i.tab.title as Text;
|
||||
final Text _text = i.tab.label as Text;
|
||||
return DefaultTextStyle(
|
||||
style: CupertinoTheme.of(context).textTheme.textStyle,
|
||||
child: CupertinoListTile(
|
||||
|
||||
Reference in New Issue
Block a user