Skip to content

Commit

Permalink
style: changed tab bar sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanYuuki committed Nov 29, 2024
1 parent c28c85c commit 3c9199a
Show file tree
Hide file tree
Showing 5 changed files with 263 additions and 230 deletions.
7 changes: 4 additions & 3 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,18 @@ class _MainAppState extends State<MainApp> {
valueListenable: box.listenable(),
builder: (BuildContext context, Box<dynamic> value, Widget? child) {
double tabBarSizeVertical = Hive.box('app-data')
.get('tabBarSizeVertical', defaultValue: 30.0);
.get('tabBarSizeVertical', defaultValue: 0.0);
double tabBarSizeHorizontal = Hive.box('app-data')
.get('tabBarSizeHorizontal', defaultValue: 0.0);
return PlatformBuilder(
androidBuilder: CrystalNavigationBar(
borderRadius: box.get('tabBarRoundness', defaultValue: 30.0),
borderRadius: box.get('tabBarRoundness', defaultValue: 20.0),
currentIndex: _selectedIndex,
paddingR: const EdgeInsets.all(0),
height: 100 + tabBarSizeVertical,
marginR: EdgeInsets.symmetric(
horizontal: getProperSize(tabBarSizeHorizontal),
vertical: getProperSize(tabBarSizeVertical),
vertical: 15
),
unselectedItemColor: Colors.white,
backgroundColor: Colors.black.withOpacity(0.3),
Expand Down
5 changes: 4 additions & 1 deletion lib/pages/Android/Anime/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,10 @@ class _AnimeHomePageState extends State<AnimeHomePage> {
topRight: Radius.circular(5),
bottomRight: Radius.circular(5)),
icon: Iconsax.star5,
name: anime['averageScore'].toString())
name: anime?['averageScore'] != null
? (anime['averageScore'] / 10)
.toStringAsFixed(1)
: '0.0')
],
)
],
Expand Down
Loading

0 comments on commit 3c9199a

Please sign in to comment.