I need to achieve something like this: AppBar - my target
I tried using border radius
Widget build(BuildContext context) {
final _appBar = AppBar(
elevation: 6.0,
shape: ContinuousRectangleBorder(
borderRadius: const BorderRadius.only(
topLeft: Radius.circular(90.0),
),),
title: Text(listPagesNames[_cIndex]),
);
But it changed the left top corner at the level of the tool bar. And not by much (even though I set radius at 90.0) Using border radius
And I thought, well maybe I can change the size. Because I can change the background color of tool bar using services package:
import 'package:flutter/services.dart';
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
statusBarColor: kMainRedPalette,
));
But using the size, the ApBar still 'starts' at the same place.
I thouht maybe something with offset (because I can already change the toolbar color), but I'm not sure how can I ofset appBar (and if it is possible at all). I'm new to dart, so any idea will be helpful :)