Skip to content
New issue

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

[TDBottomTabBar] iconText模式,底部溢出2.5像素 #353

Open
fishwithwater opened this issue Oct 17, 2024 · 2 comments
Open

[TDBottomTabBar] iconText模式,底部溢出2.5像素 #353

fishwithwater opened this issue Oct 17, 2024 · 2 comments
Labels

Comments

@fishwithwater
Copy link

tdesign-flutter 版本

0.1.7

重现链接

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});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: Scaffold(
        bottomNavigationBar:
        TDBottomTabBar(TDBottomTabBarBasicType.iconText, navigationTabs: [
          TDBottomTabBarTabConfig(
              onTap: () {},
              selectedIcon: const Icon(TDIcons.server),
              unselectedIcon: const Icon(TDIcons.server),
              tabText: 'Servers'),
          TDBottomTabBarTabConfig(
              onTap: () {},
              selectedIcon: const Icon(TDIcons.user),
              unselectedIcon: const Icon(TDIcons.user),
              tabText: 'Profile'),
        ]),
      ),
    );
  }
}

期望结果

No response

实际结果

a9393f3f14bbc5dd7c4e3db814203e1

Flutter版本

3.24.0

设备与机型信息

Redmi K70 Pro / Windows

系统版本

Android 14 / Windows 11

补充说明

可以调大barHeight修复,但是期望默认就是好的

Copy link
Contributor

👋 @fishwithwater,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

Copy link
Contributor

这个 Issue 被标记为了过时 stale ,因为它已经持续 30 天没有任何活动了。删除 stale 标签或评论,否则将在 7 天内关闭。

@github-actions github-actions bot added the Stale label Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant