We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.1.0
No response
import 'package:flutter/material.dart'; import 'package:tdesign_flutter/tdesign_flutter.dart';
void main() { runApp(const MyApp()); }
class MyApp extends StatelessWidget { const MyApp({super.key});
@OverRide Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), useMaterial3: false, ), home: const MyHomePage(title: 'Flutter Demo Home Page'), ); } }
class MyHomePage extends StatefulWidget { const MyHomePage({super.key, required this.title});
final String title;
@OverRide State createState() => _MyHomePageState(); }
class _MyHomePageState extends State { int _counter = 0;
void _incrementCounter() { setState(() { _counter++; }); }
@OverRide Widget build(BuildContext context) { return Scaffold( appBar: const TDNavBar( title: "TDesign Demo", rightBarItems: [], ), body: Center( // Center is a layout widget. It takes a single child and positions it // in the middle of the parent. child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ const Text( 'You have pushed the button this many times:', ), Text( '$_counter', style: Theme.of(context).textTheme.headlineMedium, ), ], ), ), bottomNavigationBar: TDBottomTabBar( TDBottomTabBarBasicType.iconText, componentType: TDBottomTabBarComponentType.label, outlineType: TDBottomTabBarOutlineType.capsule, useVerticalDivider: false, barHeight: 56, navigationTabs: [ TDBottomTabBarTabConfig( iconTextTypeConfig: IconTextTypeConfig(useDefaultIcon: true, tabText: '标签'), tabText: '标签', onTap: () { // onTapTab(context, '标签1'); }, ), TDBottomTabBarTabConfig( iconTextTypeConfig: IconTextTypeConfig(useDefaultIcon: true, tabText: '标签'), tabText: '标签', onTap: () { // onTapTab(context, '标签2'); }, ), TDBottomTabBarTabConfig( iconTextTypeConfig: IconTextTypeConfig(useDefaultIcon: true, tabText: '标签'), tabText: '标签', onTap: () { // onTapTab(context, '标签3'); }, ), ], ), floatingActionButton: TDButton( icon: TDIcons.add, onTap: _incrementCounter, shape: TDButtonShape.circle, type: TDButtonType.fill, size: TDButtonSize.large, theme: TDButtonTheme.primary, ), ); } }
期望按照实际高度显示,并且做底部安全区域的处理
撑满整个页面,底部也没做安全区域的处理
iOS 15 pro
iOS17
The text was updated successfully, but these errors were encountered:
👋 @BingKui,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
Sorry, something went wrong.
感谢反馈,目前确实存在这个问题,我们会在下个版本尽快解决
Merge pull request #1 from TonghuaLee/feature/switch_broad
7464934
Feature/switch broad
0.1.2版本已修复
Merge pull request #1 from shizhe2018/feature/TDImage
2478d95
新增选中样式,以及自定义文本边距
No branches or pull requests
tdesign-flutter 版本
0.1.0
重现链接
No response
重现步骤
import 'package:flutter/material.dart';
import 'package:tdesign_flutter/tdesign_flutter.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@OverRide
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: false,
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
final String title;
@OverRide
State createState() => _MyHomePageState();
}
class _MyHomePageState extends State {
int _counter = 0;
void _incrementCounter() {
setState(() {
_counter++;
});
}
@OverRide
Widget build(BuildContext context) {
return Scaffold(
appBar: const TDNavBar(
title: "TDesign Demo",
rightBarItems: [],
),
body: Center(
// Center is a layout widget. It takes a single child and positions it
// in the middle of the parent.
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Text(
'You have pushed the button this many times:',
),
Text(
'$_counter',
style: Theme.of(context).textTheme.headlineMedium,
),
],
),
),
bottomNavigationBar: TDBottomTabBar(
TDBottomTabBarBasicType.iconText,
componentType: TDBottomTabBarComponentType.label,
outlineType: TDBottomTabBarOutlineType.capsule,
useVerticalDivider: false,
barHeight: 56,
navigationTabs: [
TDBottomTabBarTabConfig(
iconTextTypeConfig: IconTextTypeConfig(useDefaultIcon: true, tabText: '标签'),
tabText: '标签',
onTap: () {
// onTapTab(context, '标签1');
},
),
TDBottomTabBarTabConfig(
iconTextTypeConfig: IconTextTypeConfig(useDefaultIcon: true, tabText: '标签'),
tabText: '标签',
onTap: () {
// onTapTab(context, '标签2');
},
),
TDBottomTabBarTabConfig(
iconTextTypeConfig: IconTextTypeConfig(useDefaultIcon: true, tabText: '标签'),
tabText: '标签',
onTap: () {
// onTapTab(context, '标签3');
},
),
],
),
floatingActionButton: TDButton(
icon: TDIcons.add,
onTap: _incrementCounter,
shape: TDButtonShape.circle,
type: TDButtonType.fill,
size: TDButtonSize.large,
theme: TDButtonTheme.primary,
),
);
}
}
期望结果
期望按照实际高度显示,并且做底部安全区域的处理
实际结果
撑满整个页面,底部也没做安全区域的处理
Flutter版本
No response
设备与机型信息
iOS 15 pro
系统版本
iOS17
补充说明
No response
The text was updated successfully, but these errors were encountered: